reconquest / atlassian-external-hooks

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

Branch name #26

Closed jchannon closed 8 years ago

jchannon commented 8 years ago

Does this plugin pass in the branch name into the executable

seletskiy commented 8 years ago

@jchannon: Yes. See https://github.com/ngsru/atlassian-external-hooks/wiki/Example.-Test-script for example.

jchannon commented 8 years ago

That's great. What I'm trying to do is inspect the branch name and if it's not in a format then prevent the push. Is that possible?

On Wednesday, 21 October 2015, Stanislav Seletskiy notifications@github.com wrote:

@jchannon https://github.com/jchannon: Yes. See https://github.com/ngsru/atlassian-external-hooks/wiki/Example.-Test-script for example.

— Reply to this email directly or view it on GitHub https://github.com/ngsru/atlassian-external-hooks/issues/26#issuecomment-149790359 .

seletskiy commented 8 years ago

@jchannon: Yes, of course. Just return non-zero exit code from the hook.

jchannon commented 8 years ago

Brilliant, thanks!