From db43d792ff7a641fb689ce93b831f5a9edf92500 Mon Sep 17 00:00:00 2001 From: James Ramsay Date: Sun, 1 Apr 2018 16:32:37 -0400 Subject: Add pagination docs to commit status API --- doc/api/commits.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc/api/commits.md') diff --git a/doc/api/commits.md b/doc/api/commits.md index a6b96ba539f..db0a80d04d9 100644 --- a/doc/api/commits.md +++ b/doc/api/commits.md @@ -412,9 +412,10 @@ Example response: Since GitLab 8.1, this is the new commit status API. -### Get the status of a commit +### List the statuses of a commit -Get the statuses of a commit in a project. +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. ``` GET /projects/:id/repository/commits/:sha/statuses -- cgit v1.2.1 From d7edda27da2387b0eed258904c114819f192ac83 Mon Sep 17 00:00:00 2001 From: Mark Fletcher Date: Thu, 5 Apr 2018 16:46:12 +0100 Subject: Mention when "/commits/:sha/merge_requests/" endpoint was introduced --- doc/api/commits.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/api/commits.md') diff --git a/doc/api/commits.md b/doc/api/commits.md index db0a80d04d9..d1584cf64de 100644 --- a/doc/api/commits.md +++ b/doc/api/commits.md @@ -539,6 +539,8 @@ Example response: ## List Merge Requests associated with a commit +> [Introduced][ce-18004] in GitLab 10.7. + Get a list of Merge Requests related to the specified commit. ``` @@ -608,3 +610,4 @@ Example response: [ce-6096]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6096 "Multi-file commit" [ce-8047]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8047 [ce-15026]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/15026 +[ce-18004]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/18004 -- cgit v1.2.1