til

Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as an open source contributor and product manager

View project on GitHub

Work on issues from comments and commit messages

You can then specify one of the following strings, followed by a issue number, to work on an issue from a commit message or comment:

  • close
  • closes
  • closed
  • fixes
  • fixed

Example:

git commit -m "Closes #34"

The string is case-insensitive and can be followed by a colon or not I believe (have not thoroughly tested this).

And most importantly only works on your primary branch whether you call in main, master, or something else. So for a commit, the closing of the issue will not happen until the commit is merged into the primary branch.

Resources and References