3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Commit log や Pull Request を close すると Issue も close する

Posted at

Issue 駆動開発をしている時に、Commit や Pull Request が Close されたら元の Issue も close したい時がある。

公式には https://help.github.com/en/articles/closing-issues-using-keywords に述べられているが、Commit message や pull request の本文などに Fix issue URL or Issue # を記載しておけばよい。

下記の動詞の直後に Issue URL あるいは Issue # を記載する。
close
closes
closed
fix
fixes
fixed
resolve
resolves
resolved

  • This closes #34, closes #23, and closes example_user/example_repo#42 .
  • 同じレポジトリの 34, 23 及び example_user/example_repo の 42 の Issue を close する
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?