diff options
author | Rémy Coutable <remy@rymai.me> | 2017-10-04 16:58:14 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-10-04 16:58:14 +0000 |
commit | 502a3a29bdb559deb87830c5f2e4659b3dd80629 (patch) | |
tree | e3b947c16598a20a6600ac42e2e498c93a7f2713 /doc | |
parent | 4155a62f3bdc6e412e91b641412f0a03ecc49d59 (diff) | |
parent | ab2e4480839d260d84a3f48c4af6584fd821ff17 (diff) | |
download | gitlab-ce-502a3a29bdb559deb87830c5f2e4659b3dd80629.tar.gz |
Merge branch 'merge-request-doco' into 'master'
explain target_project_id vs project_id
Closes #38539
See merge request gitlab-org/gitlab-ce!14594
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/merge_requests.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/api/merge_requests.md b/doc/api/merge_requests.md index bff8a2d3e4d..63a5dd1445c 100644 --- a/doc/api/merge_requests.md +++ b/doc/api/merge_requests.md @@ -121,6 +121,15 @@ GET /projects/:id/merge_requests?labels=bug,reproduced GET /projects/:id/merge_requests?my_reaction_emoji=star ``` +`project_id` represents the ID of the project where the MR resides. +`project_id` will always equal `target_project_id`. + +In the case of a merge request from the same project, +`source_project_id`, `target_project_id` and `project_id` +will be the same. In the case of a merge request from a fork, +`target_project_id` and `project_id` will be the same and +`source_project_id` will be the fork project's ID. + Parameters: | Attribute | Type | Required | Description | |