Hi Community,
We are using Bitbucket Cloud for source code and Jira Cloud for issue tracking.
Requirement:
- We want to enforce that every Git commit message contains a valid Jira issue key
- If the key is missing or invalid (i.e., the issue doesn’t exist in Jira Cloud), then:
- The commit or pull request should not be allowed.
The Problem:
- Currently, there’s no built-in way in Bitbucket Cloud to prevent developers from:
- Committing without a Jira issue key
- Creating pull requests with such commits
What we’re looking for:
- A way to block commits or PRs automatically if any commit message:
- Doesn’t include a Jira issue key
- Contains a non-existent or invalid Jira key