Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Explain & deprecate merge_commit_sha#236

Merged
jasonrudolph merged 4 commits into
masterfrom
deprecate-merge-commit-sha
Apr 25, 2013
Merged

Explain & deprecate merge_commit_sha#236
jasonrudolph merged 4 commits into
masterfrom
deprecate-merge-commit-sha

Conversation

@jasonrudolph

Copy link
Copy Markdown
Contributor

The merge_commit_sha is often misunderstood. It is internal GitHub plumbing that just happens to be part of the public API. In this PR, we:

  • Explain it (to reduce the confusion for the current version of the API)
  • Announce plans to remove it from the next version of the API

The merge_commit_sha is often misunderstood. It is internal GitHub
plumbing that just happens to be part of the public API. Explain it
(to reduce the confusion for the current version of the API), and
announce plans to remove it from the next version of the API.
Comment thread content/v3/pulls.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would consider merging (heh) a few of the sentences for clarity:

The Boolean mergable attribute indicates whether the pull request can be automatically merged, while the merge_commit_sha attribute holds the SHA of the test merge commit. However, however, the merge_commit_sha attribute is deprecated and is scheduled for removal in the next version of the API.

Alternative:

(This test commit is not added to the base branch or the head branch.) The merge_commit_sha attribute holds the SHA of the test merge commit; however, this attribute is deprecated and is scheduled for removal in the next version of the API. The Boolean mergable attribute will remain to indicate whether the pull request can be automatically merged.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorporated in 2dc0080.

Thanks to @gjtorikian for the suggestion.
@technoweenie

Copy link
Copy Markdown
Contributor

👍 We can't guarantee the stability of this property, since it changes every time the pull request head or base is updated. Once changed, the merge commit sha is available for git-gc cleanup, meaning the SHA may not even exist when someone looks for it.

jasonrudolph added a commit that referenced this pull request Apr 25, 2013
@jasonrudolph
jasonrudolph merged commit 159307c into master Apr 25, 2013
@jasonrudolph
jasonrudolph deleted the deprecate-merge-commit-sha branch April 25, 2013 19:31
gjtorikian added a commit that referenced this pull request Nov 24, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants