Skip to content

Commit

Permalink
Add Pull Request MergeCommitSHA (google#645)
Browse files Browse the repository at this point in the history
https://developer.github.com/v3/activity/events/types/#pullrequestevent documents a `merge_commit_sha` on the pull request webhook event.

For reference, this field is also (well) documented at https://developer.github.com/v3/pulls/#get-a-single-pull-request.
  • Loading branch information
Noah Zoschke authored and gmlewis committed May 19, 2017
1 parent e1a8581 commit ebfec74
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions github/pulls.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ type PullRequest struct {
Merged *bool `json:"merged,omitempty"`
Mergeable *bool `json:"mergeable,omitempty"`
MergedBy *User `json:"merged_by,omitempty"`
MergeCommitSHA *string `json:"merge_commit_sha,omitempty"`
Comments *int `json:"comments,omitempty"`
Commits *int `json:"commits,omitempty"`
Additions *int `json:"additions,omitempty"`
Expand Down

0 comments on commit ebfec74

Please sign in to comment.