A
A
AstonMartin2017-06-21 06:36:32
JIRA
AstonMartin, 2017-06-21 06:36:32

How to disable commits in Bitbucket without a Jira issue number?

Hello!
We use for development (projects on yii2) the Bitbucket repository and the Jira task tracker.
Usually, in commits, we always put the issue number from Jira, but sometimes developers forget about it and this is such an uncontrolled and untestable change.
Tell me, plz, how to put some restrictions on commits?
- reject commits without an existing issue number in Jira
- reject commits to issues that are not in a certain
status

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Antony, 2017-06-21
@RiseOfDeath

Not sure if this will work on bitbucket, but git (like many other version control systems) has hooks.
https://git-scm.com/book/ru/v1/%D0%9D%D0%B0%D1%81%...
https://xakep.ru/2016/02/11/git-hook- magic/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question