Skip to content

support for linux kernel commit message conventions

Description / Proposal

The linux kernel commit message conventions define several fields at the end of commit messages. Several of these reference people via name and email and issues via issue id, for example:

Closed-Bug: #ID 
CC: Somebody <email@example.com>
Signed-off-by: Somebody Else <other@example.com>

It would be great if gitlab would

  • match email address in commit message to user profiles like it does already for the author of a commit and display the email addresses as links (like at-mention).

The following fields could be treated specially:

  • Co-Authored-by: In case gitlab treats the commit author specially, it could treat the Co-Authored-by commit message field likewise. To my knowledge currently only the committer is used.
  • CC: add a todo for the referenced user

The following fields reference bugs and except Closes-Bug work already like I would expect them to work

  • Bug:
  • Closes:
  • Closes-Bug: this should close as well
  • Partial-Bug:
  • Related-Bug:

Further fields that within the scope of this proposal do not need special treatment apart from email matching:

  • Acked-by:
  • Reported-by:
  • Reviewed-by:
  • Signed-off-by:
  • Suggested-by:
  • Tested-by: Whether these fields could/should integrate with review workflows in gitlab, I'd see as a separate discussion.

Links / references

https://git.wiki.kernel.org/index.php/CommitMessageConventions

Documentation blurb

Overview

What is it? Why should someone use this feature? What is the underlying (business) problem? How do you use this feature?

Use cases

Who is this for? Provide one or more use cases.

Feature checklist

Make sure these are completed before closing the issue, with a link to the relevant commit.

Edited by 🤖 GitLab Bot 🤖