Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

Accept "Fixes issue #123" to close issues #413

Open

Description

@cespare

(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.)

Activity

  1. stuartpb commented on Sep 16, 2015

    @stuartpb

    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 #.

  2. added
    automation
    on Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    automationissueswording

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions