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.
Kind regards,
Theodora
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.