LoginSignup
123
94

More than 5 years have passed since last update.

コミット時にIssueをCloseする

Last updated at Posted at 2016-02-23

コミット時に指定のフォーマットで記述すると自動的に、IssesがCloseされる

フォーマット一覧 記載方法
fix fix #8
fixes This commit fixes #8
fixed We have finally fixed #8
close close #8
closes This closes #8
resolve resolve #8
resolves resolves #8
resolved resolved #8

※#8 には、Issueの対応する番号を入れてください。

複数同時に、記載する場合は、カンマでつなげて記載する

記載例

This commit fix #8, fix #9, fix #10

どのフォーマットを使用しても、効果に違いはない。
ただ、コミットで残すものなので、意味の合うフォーマットでコミットしたほうが良い。

fix, fixes, fixed は、時制によって使う場面が異なる。しかしコミットタイトルは命令形・本文は現在形で書くのが普通なので、基本的には fix(es) を使用していればよい。

参考資料

公式ドキュメント(英語)

123
94
6

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
123
94