Enforce hooks in Github for branches

ashleyg January 16, 2019

Is there a way to enforce hooks in Github so that any branch created there has to have a valid Jira issue-key in it. We have successfully integrated Jira and Github using Jira provided DVCS connector but there is no option to create branches from Jira for Github (only built for Bitbucket). As such we want to enforce something on the Github end so that any branch is created there only using a valid Jira issue-key. We use Jira data center in AWS so the "Create GitHub Branches from Jira" plugin isn't available there. Or is there any other free plugin or so some scripting on either end that can help achieve this.

Any help here would be greatly appreciated as always.

Cheers,

Ashley

1 answer

0 votes
Andre February 2, 2021

A few options here. Easiest - plugin from https://bigbrassband.com/ which allows you to create branches. Not free.

Next option: https://github.com/marketplace/actions/conform-action I haven't tested this one, but you should be able to require Jira references in commits.

Or you could use something like https://gist.github.com/veewee/939539fef7953bd11cdb on client side to enforce referencing to Jira issues.

Suggest an answer

Log in or Sign up to answer