Skip to content

Support other commits message trailers #4429

Description

@Malix-Labs

Currently

signoff:
description: 'Add `Signed-off-by` line by the committer at the end of the commit log message.'
default: false

Expected

Also support:

  • Co-authored-by: name <name@example.com>
  • on-behalf-of: @org <name@organization.com>
  • More, perhaps?

Implementation

Those might be of use:

  • git interpret-trailers
  • git log --format="%(trailers)"
  • git commit --trailer "Co-authored-by: ..."

On this note, this would be way simpler and less error prone if Git made such attributes to be native to commits instead of being unstructured strings inside of commit messages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions