Optional Developer Certificate of Origin (DCO) commit question
Description
A config option to include an additional question at the end of cz commit that displays the DCO and asks if the committer agrees to the DCO and, if yes, appends the line Signed-off-by: [NAME] <[EMAIL]> at the end of the commit message. [NAME] and [EMAIL] would be pulled from git config.
Possible Solutions
- See description.
- I suppose this could also be done instead as a third-party extension, but then what if you want a DCO question and also to use
cz_legacyorconventional_jira? - Is it possible to append a question to the cz_conventional_commits list via the json/toml file customization, or only to completely replace the list? If so, a partial solution to this feature request could just be a documentation edit to say how to do that.
Additional context
The Developer Certificate of Origin (DCO) is a lightweight alternative to a Contributor License Agreement (CLA). It's used by many prominent communities, such as:
- Linux kernel
- Gitlab
- Docker
- Amazon's OpenSearch fork of ElasticSearch
- The existence of this fork at all is a prime example of why a DCO might be preferred over a CLA; see this article
- Gradle
- Helm
- Nextcloud
- Chef
There is also a GitHub App to support DCO's use
Hi @lobotmcj , sorry for missing this issue. Currently, we've not yet enabled appending questions to existing cz rules. so the best solution for now is adding documentation. but if you have idea on how to implement this feature, we could discuss more as well.