The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Enforce hooks in Github for branches

ashleyg
Contributor
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Andre
Contributor
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.

TAGS
AUG Leaders

Atlassian Community Events