-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: --signoff #418
Comments
@kaovilai $ oco hook set // set prepare-commit-msg hook
$ git commit --signoff // in addition to the signoff message, the message generated by oco is set from the beginning (overwriting is also possible) |
Sure if it would be documented as the way opencommit dev prefer to this issue. |
Can we customize the message template on the prepare-commit-msg hook? For instance, I want to add the ticket ID as a prefix to the generated message by opencommit. Regex won't be a problem, please don't focus on this part. Branch name: MPL-1234-some-bug-fixes |
Description
https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---signoff
Suggested Solution
oco --signoff <email>
if this takes too long we can alias.
Alternatives
set in some config file
or have a way to not have oco prompt for push
oco config set OCO_GITPUSH=false
.. then we can
&& git commit --amend --signoff && git push --force
Additional Context
https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-the-commit-signoff-policy-for-your-repository#about-commit-signoffs
https://wiki.linuxfoundation.org/dco
For linux foundation, DCO is a requirement.
The text was updated successfully, but these errors were encountered: