Skip to content

Close GitHub issues with commits

If you use GitHub issues, you can close them by adding a text like closes #1 to the commit message to close them. You can use other keywords than closes to do that. You can use any of the following:

  • close
  • closes
  • closed
  • fix
  • fixes
  • fixed
  • resolve
  • resolves
  • resolved

You can even close issues in another repository, assuming that you have push access to that. The syntax is the <repo-owner-name>/<repo-name>#<repo-id>, so an example would be fixes Filnor/example2#1.

(source) (source)

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.