Link commit message to a Jira ticket
This rule ensures a Jira issue key is included in the commit message.
By mentioning the Jira issue key in the (Git) commit message, it's possible to create a link between a specific Jira issue to the relevant commits.
- Create a logical link between planning (Jira) and the subsequent code change (GitHub)
- Recommended requirement for SOC 2 compliance
When does this rule fail?
When none of the commits in the pull request mention a Jira issue key.
When a pull request is created but fails to mention a Jira issue key in the pull request title.
How to fix?
- Fix the wrong commit message(s) or add a new commit and mention the relevant Jira ticket in the commit message
- Datree's policy check will automatically run to make sure a Jira issue key is mentioned in one of the commits in the pull request
|Activate a policy|