reconquest / atlassian-external-hooks

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

Execute pre-receive hook during merge pull-request event #19

Closed val0 closed 4 years ago

val0 commented 9 years ago

Could you please give me a hint how I can execute pre-receive hook during merge pull request occurs?

rappazzo commented 9 years ago

The external hooks plugin does not enable this out of the box. You would have to fork this project and add that feature. It's not too hard though:

Add your component to atlassian-plugin.xml:

<component key="myMergeCheck" class="com.you.stash.MergePullRequestHook"/>

The MergePullRequestHook should implement MergeRequestCheck. It would have to make some of the same calls that happen on the pre-receive from this plugin

seletskiy commented 9 years ago

@val0, @rappazzo: Yeah, it's pending feature. I have other things to do right now, but, @val0, if you will implement it, I will be glad to receive PR.

yorammi commented 8 years ago

This would be great if this will be implemented!!!

atikhono commented 8 years ago

+1

seletskiy commented 8 years ago

Merge check is implemented in the #32.