Trying to set a pre-receive hooks to make every commit contain a jira-id. But unfortunately, couldn't see the hooks option inside project settings.
The option given here is not shown up. We are using bitbucket cloud and not dataserver. Is this an issue? If so, is there any alternative now?
#hooks, #commit-policies #bitbucket
Hi @Krishna S L and welcome to the community!
Bitbucket Server/Data Center and Bitbucket Cloud have differences and I'm afraid that the hooks option is not available for Bitbucket Cloud.
However, if you'd like to enforce every commit message to contain a JIRA issue key, there is a way to do this in Bitbucket Cloud.
This needs to be set on each repository.
You can open the repository in Bitbucket Cloud website, then go to Repository settings > Links > in there you'll see the option Require issue keys in commit messages and you can enable it.
If you have any questions, please feel free to let me know.
Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events