Skip to content

Allow colon in closing issue from commit message #5699

Closed
@znegva

Description

@znegva
  • Gitea version (or commit ref): 1.6.1
  • Git version: --
  • Operating system: --
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Gitea-Issues can be closed, reopened or referenced in commit messages.
The same keywords as in github are used, see here.
Githubs description of the feature is described here.

Inside github it is possible to use a colon between keyword and issue-number, eg

Fixed the critical bug
closes: #123

This is not possible with gitea, only keywords directly followed by the issue number are recognised:

Fixed the critical bug
closes #123

It would be great if an optional colon : could be supported.
If I read the source code correctly this should be feasible by slightly extending the regex used to detect the keywords.

Depending on your understanding, communication with the issue tracker is additional information that is not necessarily related to the actual commit.
Especially if you use the commit messages in addition in other ways (e.g. to create documentation or changelogs) issue-related stuff is often unimportant.
The ability to structure issue references more clearly makes it easier to ignore these references where they are not needed.

Additional Infos

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions