Add signoff_commit config option to sign off version commits (DCO support) - #1492
Merged
Merged
Conversation
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)
codejedi365
force-pushed
the
copilot/implement-signoff-commit-option
branch
from
September 22, 2026 06:23
396a55b to
9832ae3
Compare
codejedi365
marked this pull request as ready for review
September 22, 2026 06:27
codejedi365
approved these changes
Sep 22, 2026
codejedi365
force-pushed
the
copilot/implement-signoff-commit-option
branch
from
September 22, 2026 06:54
9832ae3 to
b652bee
Compare
…to release commit
NOTICE: With this release, we added a boolean flag, `semantic_release.signoff_commit`, as an available configuration option to toggle the addition of the `Signed-off-by` git trailer/footer message to release commits made by Python Semantic Release. Default is currently set to `False` but if you want to try this option, set this configuration setting to `True`. In a future major release, this setting will be set to `True` by default. Implements: #1441
codejedi365
force-pushed
the
copilot/implement-signoff-commit-option
branch
from
September 22, 2026 07:08
b652bee to
ee2c7b7
Compare
Contributor
🎉 This PR has been published as part of v10.7.0 🎉You can find more information about this release on the GitHub Releases page. |
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:
Closes: #1441