The exact need is for all Bitbucket commits to be associated with a JIRA ticket.
I do this earlier in Subversion by creating a commit hook that looked for a JIRA ticket in the commit text, but I don't want this solution to be necessarily limited to this previous experience.
Does Bitbucket have a parameter somewhere to force pooling for all commits against Jira tickets? If not - is there a mechanism to ensure the quality of commenting on comments (some kind of hook or regular expression)? If not - is there a GIT that we can use for this purpose?
The solution presented is a (but not limited to) commit hook that does not commit if the comment text does not contain a JIRA host ticket, followed by a colon, followed by some commit text that:
git commit -m "foo"
does not work and
git commit -m "PRJ-9327: foo"
commits ...
source
share