1
0
mirror of https://github.com/tiimgreen/github-cheat-sheet.git synced 2025-08-10 18:04:10 +02:00

Issues can also be closed by resolve(|s|d)

As documented in https://help.github.com/articles/closing-issues-via-commit-messages (to which the section links on the end!).  resolve* was not there from the very beginning, though — and thus many people (get off my lawn!) don’t know about it.
This commit is contained in:
Chris “Kwpolska” Warrick
2014-04-17 13:29:31 +02:00
parent d3b05869c4
commit 2a9c1fc0ce

View File

@@ -189,7 +189,7 @@ https://github.com/rails/rails/blob/master/activemodel/lib/active_model.rb#L53-L
![Line Highlighting](http://i.imgur.com/8AhjrCz.png) ![Line Highlighting](http://i.imgur.com/8AhjrCz.png)
### Closing Issues via Commit Messages ### Closing Issues via Commit Messages
If a particular commit fixes an issue, any of the keywords `fix/fixes/fixed` or `close/closes/closed`, followed by the issue number, will close the issue once it is committed to the master branch. If a particular commit fixes an issue, any of the keywords `fix/fixes/fixed`, `close/closes/closed` or `resolve/resolves/resolved`, followed by the issue number, will close the issue once it is committed to the master branch.
```bash ```bash
$ git commit -m "Fix cock up, fixes #12" $ git commit -m "Fix cock up, fixes #12"