You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
(I have seen #357 but I find it way too magical. This suggestion is less ambitious and much more concrete.)
The documented syntax for closing an issue with a commit message is on this help page.
The syntax is VERB #123, where VERB is quite liberally parsed; it can one of several tenses/moods of "close", "fix", or "resolve", insensitive to case (I think).
The most common mistake I see (I've made it a few times myself) is writing something like
Fixes issue #123
So I propose that the new syntax allow for issue to follow VERB.
A further extension might also allow synonyms for "issue" such as "bug".
(See golang/go#11472 where the Go team is considering tooling to fix these commit messages because this mistake is common enough.)
Reacted by Sindre Sorhus, PerthCharern, Azar and moul
I'd also add that "GitHub" should be one of the words that are ignored between the issue and the number. Also, "number" - and some of these words should allow a number to be parsed without the #.
Activity
stuartpb commentedon Sep 16, 2015
I'd also add that "GitHub" should be one of the words that are ignored between the issue and the number. Also, "number" - and some of these words should allow a number to be parsed without the
#.