diff options
author | David Turner <novalis@novalis.org> | 2017-09-29 18:07:36 -0400 |
---|---|---|
committer | David Turner <novalis@novalis.org> | 2017-10-03 13:26:44 -0400 |
commit | ab2e4480839d260d84a3f48c4af6584fd821ff17 (patch) | |
tree | 0993c41f7137b43640d16ea8283b5c97563c6a2b /doc | |
parent | 244f631eb5c21bbf4f3dc3205139a98d91c97499 (diff) | |
download | gitlab-ce-ab2e4480839d260d84a3f48c4af6584fd821ff17.tar.gz |
explain target_project_id vs project_id
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 | |