summaryrefslogtreecommitdiff
path: root/doc/api/commits.md
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-27 09:09:01 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-27 09:09:01 +0000
commitc72e5ebe9938d315ec598197873e71a80168d40a (patch)
tree439bf5c40aaf774e5a301825af517cb52726f450 /doc/api/commits.md
parentffc43b862df32a590eae874bcbb11109b46dc8be (diff)
downloadgitlab-ce-c72e5ebe9938d315ec598197873e71a80168d40a.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/commits.md')
-rw-r--r--doc/api/commits.md26
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/api/commits.md b/doc/api/commits.md
index ee635a009bf..ca82eb4c442 100644
--- a/doc/api/commits.md
+++ b/doc/api/commits.md
@@ -4,7 +4,7 @@
Get a list of repository commits in a project.
-```
+```plaintext
GET /projects/:id/repository/commits
```
@@ -67,7 +67,7 @@ Example response:
Create a commit by posting a JSON payload
-```
+```plaintext
POST /projects/:id/repository/commits
```
@@ -190,7 +190,7 @@ curl --request POST \
Get a specific commit identified by the commit hash or name of a branch or tag.
-```
+```plaintext
GET /projects/:id/repository/commits/:sha
```
@@ -246,7 +246,7 @@ Example response:
Get all references (from branches or tags) a commit is pushed to.
The pagination parameters `page` and `per_page` can be used to restrict the list of references.
-```
+```plaintext
GET /projects/:id/repository/commits/:sha/refs
```
@@ -280,7 +280,7 @@ Example response:
Cherry picks a commit to a given branch.
-```
+```plaintext
POST /projects/:id/repository/commits/:sha/cherry_pick
```
@@ -339,7 +339,7 @@ conflict.
Reverts a commit in a given branch.
-```
+```plaintext
POST /projects/:id/repository/commits/:sha/revert
```
@@ -391,7 +391,7 @@ changeset was empty, likely due to the change having already been reverted.
Get the diff of a commit in a project.
-```
+```plaintext
GET /projects/:id/repository/commits/:sha/diff
```
@@ -427,7 +427,7 @@ Example response:
Get the comments of a commit in a project.
-```
+```plaintext
GET /projects/:id/repository/commits/:sha/comments
```
@@ -478,7 +478,7 @@ cases below is valid:
In any of the above cases, the response of `line`, `line_type` and `path` is
set to `null`.
-```
+```plaintext
POST /projects/:id/repository/commits/:sha/comments
```
@@ -524,7 +524,7 @@ Since GitLab 8.1, this is the new commit status API.
List the statuses of a commit in a project.
The pagination parameters `page` and `per_page` can be used to restrict the list of references.
-```
+```plaintext
GET /projects/:id/repository/commits/:sha/statuses
```
@@ -598,7 +598,7 @@ Example response:
Adds or updates a build status of a commit.
-```
+```plaintext
POST /projects/:id/statuses/:sha
```
@@ -651,7 +651,7 @@ Example response:
Get a list of Merge Requests related to the specified commit.
-```
+```plaintext
GET /projects/:id/repository/commits/:sha/merge_requests
```
@@ -720,7 +720,7 @@ Example response:
Get the [GPG signature from a commit](../user/project/repository/gpg_signed_commits/index.md),
if it is signed. For unsigned commits, it results in a 404 response.
-```
+```plaintext
GET /projects/:id/repository/commits/:sha/signature
```