Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit159307c

Browse files
committed
Merge pull request#236 from github/deprecate-merge-commit-sha
Explain & deprecate merge_commit_sha
2 parentsa812084 +2dc0080 commit159307c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

‎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)

[8]ページ先頭

©2009-2025 Movatter.jp