使用提交消息在Github中关闭多个问题 [英] Closing multiple issues in Github with a commit message
问题描述
我知道你可以通过在提交信息中放置关闭#1
或修复#1
来解决问题。在同一个提交信息中关闭多个问题的最佳方式是什么?
I know you can close issues by putting closes #1
or fixes #1
in the commit message. What is the best way to close multiple issues in the same commit message?
另外,它似乎使用修复
而不是 closes
不会创建从提交消息到问题的链接,但它确实关闭了问题。这是怎么回事?
Also, it appears that using fixes
rather than closes
doesn't create a link from the commit message to the issue, but it does close the issue. What's up with that?
推荐答案
关闭#1,关闭#2,关闭#3;其余的提交信息。
关闭子句可以位于消息中的任何位置, 修正
是一个有效的同义词:
The closes
clauses can be anywhere in the message and fixes
is a valid synonym:
This fixes a memory leak in foo() that closes #4,
also fixes #5 which is a duplicate.
以下用于 work,but nowadays only references issues#2 and#3。
The following used to work, but nowadays only references issues #2 and #3.
关闭#1,#2,# 3
这篇关于使用提交消息在Github中关闭多个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!