10000 Fix mistake in Closing Issues via Commit Messages · saaadel/github-cheat-sheet@4aaff15 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4aaff15

Browse files
authored
Fix mistake in Closing Issues via Commit Messages
The issue will be closed as soon as the commit is committed to the **repository's default branch**, not the master branch. I noticed this because we're using a different default branch for one of our projects.
1 parent 0a4d907 commit 4aaff15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ https://github.com/rails/rails/blob/master/activemodel/lib/active_model.rb#L53-L
256256
![Line Highlighting](http://i.imgur.com/8AhjrCz.png)
257257

258258
### Closing Issues via Commit Messages
259-
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.
259+
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 repository's default branch.
260260

261261
```bash
262262
$ git commit -m "Fix screwup, fixes #12"

0 commit comments

Comments
 (0)
0