Closed leonid-deriv closed 8 months ago
Hi,
Thanks for the feedback. Yes that might be possible. Could you provide some precision ?
mergeCommit
the field you expect to be used from the PullRequest object https://docs.github.com/en/graphql/reference/objects#pullrequest ?
Can we add merge_commit_sha to the Change event?
Currently, only code commits are included. We believe this should not be very difficult. We need to correlate merge_commits to the deployment events. This may help with this issue as well - https://github.com/change-metrics/monocle/issues/277
Here is from GitHub docs
The value of the merge_commit_sha attribute changes depending on the state of the pull request. Before merging a pull request, the merge_commit_sha attribute holds the SHA of the test merge commit. After merging a pull request, the merge_commit_sha attribute changes depending on how you merged the pull request:
If merged as a merge commit, merge_commit_sha represents the SHA of the merge commit.
If merged via a squash, merge_commit_sha represents the SHA of the squashed commit on the base branch.
If rebased, merge_commit_sha represents the commit that the base branch was updated to.