在提交消息中链接到GitHub上的问题编号 [英] Link to the issue number on GitHub within a commit message

查看:145
本文介绍了在提交消息中链接到GitHub上的问题编号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

git commit 消息中


是否有可能自动链接到GitHub问题编号

解决方案

只需在您的提交消息中包含 #xxx 即可引用问题而不关闭它。 / strong>



使用新的 GitHub问题2.0 您可以使用这些同义词来引用问题并关闭它(在你的提交信息中):



您也可以用 gh-xxx 替换 #xxx



引用和关闭repos 也有效:

 修复用户/回购#xxx 

查看文档在其帮助部分中可用。


Is it somehow possible to automatically have a link to GitHub issue number in the git commit message?

解决方案

Just include #xxx in your commit message to reference an issue without closing it.

With new GitHub issues 2.0 you can use these synonyms to reference an issue and close it (in your commit message):

  • fix #xxx
  • fixes #xxx
  • fixed #xxx
  • close #xxx
  • closes #xxx
  • closed #xxx
  • resolve #xxx
  • resolves #xxx
  • resolved #xxx

You can also substitute #xxx with gh-xxx.

Referencing and closing issues across repos also works:

fixes user/repo#xxx

Check out the documentation available in their Help section.

这篇关于在提交消息中链接到GitHub上的问题编号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆