Closing multiple issues in Github with a commit message

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?

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?

103
задан Esoteric Screen Name 4 September 2012 в 14:11
поделиться

1 ответ

Закрывает #1, закрывает #2, закрывает #3; остальная часть сообщения о фиксации.

Пункты закрывает могут находиться в любом месте сообщения, и исправляет является допустимым синонимом:

This fixes a memory leak in foo() that closes #4,
also fixes #5 which is a duplicate.

Следующие раньше работали, но сейчас только ссылается на проблемы #2 и #3.

Закрывает #1, #2, #3

144
ответ дан 24 November 2019 в 04:19
поделиться
Другие вопросы по тегам:

Похожие вопросы: