summaryrefslogtreecommitdiff
path: root/doc/api/deployments.md
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-13 21:07:39 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-13 21:07:39 +0000
commit74a89b1221eaf780374bd1d4c5b2ee4a0f488908 (patch)
tree27dbcfdbc4216e9bee04b9be9c974d86744d51ba /doc/api/deployments.md
parentb0abae12affecc466aeb10889e8a6c000d6f67f5 (diff)
downloadgitlab-ce-74a89b1221eaf780374bd1d4c5b2ee4a0f488908.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/deployments.md')
-rw-r--r--doc/api/deployments.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/api/deployments.md b/doc/api/deployments.md
index 916c99d5f89..2b5942f6b7a 100644
--- a/doc/api/deployments.md
+++ b/doc/api/deployments.md
@@ -349,3 +349,19 @@ Example of a response:
"deployable": null
}
```
+
+## List of merge requests associated with a deployment
+
+> [Introduced](https://gitlab.com/gitlab-org/gitlab/issues/35739) in GitLab 12.7.
+
+This API retrieves the list of merge requests shipped with a given deployment:
+
+```
+GET /projects/:id/deployments/:deployment_id/merge_requests
+```
+
+It supports the same parameters as the [Merge Requests API](./merge_requests.md#list-merge-requests) and will return a response using the same format:
+
+```bash
+curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/deployments/42"
+```