Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
96e9959a
Commit
96e9959a
authored
Apr 02, 2021
by
Harsh Chouraria
Committed by
Suzanne Selhorn
Apr 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add notes about SHAs in Diff APIs
parent
512a4bfc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
doc/api/merge_requests.md
doc/api/merge_requests.md
+12
-2
No files found.
doc/api/merge_requests.md
View file @
96e9959a
...
...
@@ -761,6 +761,8 @@ the `approvals_before_merge` parameter:
}
```
The
`diff_refs`
in the response correspond to the latest diff version of the merge request.
## Get single MR participants
Get a list of merge request participants.
...
...
@@ -2328,7 +2330,8 @@ Example response:
## Get MR diff versions
Get a list of merge request diff versions.
Get a list of merge request diff versions. For an explanation of the SHAs in the response,
read
[
SHAs in the API response
](
#shas-in-the-api-response
)
.
```
plaintext
GET /projects/:id/merge_requests/:merge_request_iid/versions
...
...
@@ -2367,9 +2370,16 @@ Example response:
}]
```
### SHAs in the API response
-
`head_commit_sha`
: The HEAD commit of the source branch.
-
`base_commit_sha`
: The merge-base commit SHA between the source branch and the target branches.
-
`start_commit_sha`
: The HEAD commit SHA of the target branch when this version of the diff was created.
## Get a single MR diff version
Get a single merge request diff version.
Get a single merge request diff version. For an explanation of the SHAs in the response,
read
[
SHAs in the API response
](
#shas-in-the-api-response
)
.
```
plaintext
GET /projects/:id/merge_requests/:merge_request_iid/versions/:version_id
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment