验证提交消息包含jira票证号时,南瓜合并了github webui

发布于 2025-01-30 12:57:30 字数 739 浏览 2 评论 0 原文

在壁球合并时,在成功的拉请请求之后,我想验证壁球合并消息包含JIRA票证号。如果不是南瓜合并,则在用户输入适当的提交消息之前。

现在,需要手动完成这项工作,有时我忘记包括我想要一种自动方法来确保我不要忘记这样做的机票号码。

  1. 我知道我可以在本地使用钩子来强制jira票号,但我不在乎用户如何在分支上工作。我真的只希望受保护的分支都从
  2. 我没有Github Entreprise的JIRA票开始,因此我不能使用预先接管的钩子。
  3. 我已经研究了github动作,但不确定这是正确的方法。

一些参考但没有解决方案:

  1. 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.

  1. 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
  2. I do not have github entreprise so I can't use a pre-receive hook.
  3. I have look into github action but not sure this is the proper way to go.

Some Reference but no solutions:

  1. Ensure github PR squash merge commit comments contain issue ID
  2. https://github.com/github/feedback/discussions/8688

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文