在提交消息中链接到 GitHub 上的问题编号 [英] Link to the issue number on GitHub within a commit message
本文介绍了在提交消息中链接到 GitHub 上的问题编号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在 git commit
消息中自动提供指向 GitHub 问题编号的链接?
Is it somehow possible to automatically have a link to GitHub issue number in the git commit
message?
推荐答案
只需在提交消息中包含 #xxx
即可引用问题,而无需关闭它.
Just include #xxx
in your commit message to reference an issue without closing it.
使用新的 GitHub 问题 2.0您可以使用这些同义词来引用问题并关闭 它(在你的提交信息中):
With new GitHub issues 2.0 you can use these synonyms to reference an issue and close it (in your commit message):
修复#xxx
修复#xxx
固定#xxx
关闭#xxx
关闭#xxx
关闭#xxx
解析#xxx
解析#xxx
已解决#xxx
您也可以将 #xxx
替换为 gh-xxx
.
You can also substitute #xxx
with gh-xxx
.
引用和关闭跨存储库的问题 也有效:
fixes user/repo#xxx
查看帮助部分中的文档.
这篇关于在提交消息中链接到 GitHub 上的问题编号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文