change-metrics / monocle

Monocle helps teams and individual to better organize daily duties and to detect anomalies in the way changes are produced and reviewed.
https://demo.changemetrics.io/
GNU Affero General Public License v3.0
362 stars 56 forks source link

Add merge_commit_sha to Change event #1072

Closed leonid-deriv closed 8 months ago

leonid-deriv commented 8 months ago

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:

morucci commented 8 months ago

Hi,

Thanks for the feedback. Yes that might be possible. Could you provide some precision ?

leonid-deriv commented 8 months ago
  1. yes, I expect to see mergeCommit. If we have commit SHA I hope it should be enough. is it oid or abbreviatedOid.
  2. I refer to type:"Change". But maybe it is a good idea to also add it to ChangeMergedEvent? No? So if you ask me it is better to add to both, if only one - to the "Change" Please let me know if you have more questions. I hope this is not difficult to do. Thank you