How can I ensure commit comments from a github PR squash merge contains required text?
We use Jira + Github and if a use enters Jira issue IDs in commit comments those a commits become linked to the Jira issues.
When users merge a PR from their private feature branch, they usually squash and merge which means the user can manually summarize the intent of the single commit from that branch to a larger integration branch or master.
If a user forgets to enter them when they merge the PR, it becomes painful to edit the commit and add the text to the message.
Is there a status check or commit message formatter that I can use on the PR to ensure there must be something that looks like a Jira ID? (AAA-111)
See Question&Answers more detail:os