reconquest / atlassian-external-hooks

External Hooks plugin for Atlassian Bitbucket
https://external-hooks.reconquest.io
Other
44 stars 37 forks source link

Merge check hook #18

Closed henriklynggaard closed 8 years ago

henriklynggaard commented 9 years ago

Support for merge check hook would be created so I can avoid writing java for performing simple merge checks script

https://developer.atlassian.com/stash/docs/latest/tutorials-and-examples/controlling-when-pull-requests-can-be-merged.html

Please add some caching functionality as my scripts take a while

andreineculau commented 8 years ago

+1

greened commented 8 years ago

+10

We could really use this.

greened commented 8 years ago

See PR #32.

greened commented 8 years ago

There is a LOT of information in a pull request that a Merge Check hook could potentially examine. I started by simply passing the From Repository, From Commit ID, To Repository and To Commit ID to the hook along with the standard environment variables the other hooks use. That should be sufficient to extract a bunch of other information but it's easy enough to pass more if needed. I only needed to look at the actual commits being merged so that's all I did so far.