Force Bitbucket Commit to communicate with JIRA ticket by formatting comments

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 ...

+4
source share
2 answers

problem with BitBucket 5658 just implemented today (April 13, 2017)

Ability to reject commit without a problem key in your message

This feature is now available to all users through the storage settings " links"

pre-receive, , - .
"links" , , . Jira, Bitbucket Issues, Connect add-ons .

, .

Link

+3

(14 2017 .)

, JIRA . . VonC.

Bitbucket, . Bitbucket ()

: , .

0

Source: https://habr.com/ru/post/1658735/


All Articles