Skip to content

Commit 159307c

Browse files
committed
Merge pull request github#236 from github/deprecate-merge-commit-sha
Explain & deprecate merge_commit_sha
2 parents a812084 + 2dc0080 commit 159307c

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

content/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ objects.
3939
* `[ ]` `master_branch` becomes `default_branch`.
4040
* `[ ]` `integrate_branch` on the [repo API](/v3/repos/#get) will no longer be
4141
returned.
42+
* `[ ]` `merge_commit_sha` on the [pull request API](/v3/pulls/#get-a-single-pull-request)
43+
will no longer be returned.
4244
* `[ ]` Use the `private` attribute when creating a private repository,
4345
instead of setting `public` to false.
4446
* `[ ]` Use JSON to POST to the "repos/:owner/:repo/forks" endpoint, instead of a query string.

content/v3/pulls.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,18 @@ base
6363
<%= headers 200 %>
6464
<%= json :full_pull %>
6565

66+
### Mergability
67+
68+
Each time the pull request receives new commits, GitHub creates a merge commit
69+
to _test_ whether the pull request can be automatically merged into the base
70+
branch. (This _test_ commit is not added to the base branch or the head branch.)
71+
The `merge_commit_sha` attribute holds the SHA of the _test_ merge commit;
72+
however, this attribute is [deprecated](/#expected-changes) and is scheduled for
73+
removal in the next version of the API. The Boolean `mergable` attribute will
74+
remain to indicate whether the pull request can be automatically merged.
75+
76+
### Alternative Response Formats
77+
6678
Pass the appropriate [media type](/v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.
6779

6880
## Create a pull request

0 commit comments

Comments
 (0)