-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 Request] Verify Developer Certificate of Origin (DCO) in the CI #2057
Comments
I'm seeing more and more PRs failing to add DCO and taking maintainers' time:
I looked into making it easier to handle the DCO. Here is what I advise: 1 - Require contributors to sign off on web-based commitsThis can be enabled by going in the settings of the repository If this is causing issues, we can always uncheck the box later 2 - Add a DCO check in the CII looked around and it seems everyone is using https://github.com/dcoapp/app to do this. You can take a look at the app in action here: openhab/openhab-core#4161 Note that, as maintainers, you can force the check to be green if needed by clicking "Set DCO to pass" in the PR build if needed. 3 - Skip DCO check for organisation membersI seems that modular staff doesn't include the DCO, thus it should not be required for them. Here is the option to do it: https://github.com/dcoapp/app?tab=readme-ov-file#skipping-sign-off-for-organization-members 4 - Make the DCO a required check in the pull request, preventing merging:Follow the instructions here: https://github.com/dcoapp/app/blob/main/docs/required-statuses.md to do it. This should make it easier for newcomers to contribute, as they will have fast feedback and instructions to fix their DCO, and it will take way less time for maintainers as they won't need to manually check the DCO or explain to users how to fix it. |
@ConnorGray @JoeLoser that might save you some time :) |
Thanks a lot for researching this — very helpful! @ConnorGray is going to look into this as part of other work for improving PR review for us such as making sure people are targeting the Going to go ahead and assign @ConnorGray to this GH issue. |
We actually already have the #1 option enabled where the github checkbox is clicked so wondering what the issue is with that that necessitates more. |
Fixed by adding the DCO app described above to the mojo repository. Thanks @gabrieldemarmiesse for putting all this information together, it was very helpful! 🙂 |
Review Mojo's priorities
What is your request?
It would be cool to have a CI check in PRs that verifies the DCO
What is your motivation for this change?
I sometimes forget to add the DCO in my commits' logs. Also it seems that the new contributors sometimes forget the DCO, it would be great to have the CI help them learn the procedure instead of a human.
Any other details?
I don't know any tool that will automatically do it. Worst case scenario we can do this by hand with a python script running inside a github action.
The text was updated successfully, but these errors were encountered: