{{ message }}
Add signoff_commit config option to sign off version commits (DCO support) - #1492
Draft
codejedi365 with Copilot wants to merge 2 commits into
Draft
codejedi365 with Copilot wants to merge 2 commits into
codejedi365 with Copilot wants to merge 2 commits into
Conversation
Co-authored-by: codejedi365 <17354856+codejedi365@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for automatically including Signed-off-by line in commits
Add Sep 7, 2026
signoff_commit config option to sign off version commits (DCO support)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds a
signoff_commitconfiguration option so that automated version-bump commits can include aSigned-off-bytrailer, supporting Developer Certificate of Origin (DCO) compliance for release automation.Configuration
signoff_commit: bool(defaultFalse) toRawConfigandRuntimeContextinsrc/semantic_release/cli/config.py, following the same pattern asno_git_verify.Git commit logic
signoffparameter toGitProject.git_commit()insrc/semantic_release/gitproject.py. Since this method already shells out to the realgit commitbinary (viarepo.git.commit(...)), signoff is implemented by passingsignoff=Truethrough to git's native--signoffflag rather than manually constructing the trailer — git generates the correctSigned-off-by: Name <email>line using the already-configured committer identity.--signoffwhen the option is enabled.Wiring
cli/commands/version.pyreadsruntime.signoff_commitand passes it toproject.git_commit(...)when creating the version commit.Documentation
signoff_commitindocs/configuration/configuration.rst.Example config:
Resulting commit message: