Skip to content

Configure cz commit to add --signoff by default #785

Closed
@schlotter

Description

@schlotter

Description

Many projects require developers to sign-off every commit in order to acknowledge the project's Developer Certificate of Origin (DCO). Thus, it would be useful to configure commitizen in a way so that each commit is automatically signed-off, so that the -s/--signoff options do not manually be supplied to cz commit.

Possible Solution

  1. Developer sets always_signoff setting to true.
  2. Developer runs cz commit without any arguments.
  3. Developer answers all questions of commitizen.
  4. A Git commit is created and its message contains
    Signed-off-by: Firstname Lastname <firstname.lastname@example.com>
    

Additional context

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions