在壁球合并时,在成功的拉请请求之后,我想验证壁球合并消息包含JIRA票证号。如果不是南瓜合并,则在用户输入适当的提交消息之前。
现在,需要手动完成这项工作,有时我忘记包括我想要一种自动方法来确保我不要忘记这样做的机票号码。
- 我知道我可以在本地使用钩子来强制jira票号,但我不在乎用户如何在分支上工作。我真的只希望受保护的分支都从
- 我没有Github Entreprise的JIRA票开始,因此我不能使用预先接管的钩子。
- 我已经研究了github动作,但不确定这是正确的方法。
一些参考但没有解决方案:
-
- https://github.com/github.com/github/github/github/feedback/discussions/ 8688
When doing a squash merge, following a successful Pull Request, on github I would like to validate that the squash merge commit message contains a Jira ticket number. If it does not the squash merge should fail until a proper commit message is entred by the user.
Right now this needs to be done manually and sometimes I forget to include the ticket number I would like an automatic way to make sure I don't forget to do it.
- I know that I can use hooks locally to force a Jira Ticket number but I dont care about how the user work on his on branch. I really just want the protected branch commits to all start with a Jira ticket
- I do not have github entreprise so I can't use a pre-receive hook.
- I have look into github action but not sure this is the proper way to go.
Some Reference but no solutions:
- Ensure github PR squash merge commit comments contain issue ID
- https://github.com/github/feedback/discussions/8688
发布评论