commitizen icon indicating copy to clipboard operation
commitizen copied to clipboard

Configure `cz commit` to add `--signoff` by default

Open schlotter opened this issue 2 years ago • 1 comments

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 <[email protected]>
    

Additional context

No response

Additional context

No response

schlotter avatar Jul 14 '23 16:07 schlotter

Hi @schlotter, thanks for proposing this issue. It sounds good to me. Would be much appreciated if you're interested in sending a PR 🙂

Lee-W avatar Aug 20 '23 08:08 Lee-W

Thanks @JamieLee0510 for the reminder. Just verified this issue was merged long a ago and resolved

Lee-W avatar Apr 21 '24 07:04 Lee-W