Repository navigation
Description
For a long time many (but not all, myself included) NUT contributors have signed off their commits to conform to the legal practice of shared development. I've seen a GitHub app https://github.com/apps/dco which allows to enforce the presence of such signatures, worth adding it to the CI checks.
- https://stackoverflow.com/questions/1962094/what-is-the-sign-off-feature-in-git-for
- https://community.openhab.org/t/dco-check-signing-off-with-github-web-editor-explanation/83330
From https://developercertificate.org/:
Developer Certificate of Origin
Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
Sign-off can be marked by use of -s (note also PGP signing for those with a key, with -S):
:; git commit -s -m 'DIR/FILENAME: something about this change'
Note that while commit hook tricks like those discussed in https://stackoverflow.com/questions/15015894/git-add-signed-off-by-line-using-format-signoff-not-working are available to automatically sign off all commits, these signatures are intended to be a conscious (legally meaningful) act -- hence not automated in git core. A format.signoff setting is for something else.
For PGP signing, see more at:
- https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits
- https://docs.github.com/en/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key
Activity
jimklimov commentedon Jul 18, 2023
App installed into NUT organization.
Introduce LICENSE-DCO into the source codebase [networkupstools#1994]
docs/developers.txt: add a chapter on DCO (Signed-Off-By) [networkups…
jimklimov commentedon Jul 19, 2023
Also of interest for (custom) CI farms may be https://github.com/christophebedard/dco-check
jimklimov commentedon Jul 19, 2023
https://github.com/jimklimov/git-scripts/blob/master/git-reauthor was updated with support for
SIGNOFF=trueenvvar value to rewrite existing local commits with an addedSigned-off-bytag.jimklimov commentedon Jul 30, 2023
A minor hiccup regards commits made via GitHub Web-UI Editor: you have to actually type the sign-off text
Signed-off-by: User Name <someone@domain.org>as a line in the end of extended commit message; there is no checkbox equivalent togit commit -sas of yet :(jimklimov commentedon Jul 31, 2023
Followed-up in the Wiki: https://github.com/networkupstools/nut/wiki/Code-contributions,-PRs,-PGP-and-DCO
jimklimov commentedon Sep 2, 2023
MAINTAINER NOTE: In PRs (especially older ones still in the queue), a failed DCO check can be clicked in GitHub UI by a project member with sufficient privilege, and there's a button to "Set DCO to pass" so it does not "pollute" the build overview for that PR (marking the PR as failed so one has to read into details and see if it is a code problem or not).
Makefile.am: Introduce LICENSE-DCO into the source codebase [networku…