-
Notifications
You must be signed in to change notification settings - Fork 52
SPEC 8 signed commits clarification #380
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
Comments
When you merge commits from the UI they become signed commits. Signing the commits is more a way to prove that a specific person work on some code. Anyone can otherwise change the name and email in the commit and there is no way to prove anything. Signing gives that guarantee. |
Thanks! So does that mean I could do the following:
|
Yes I think that works 👍 |
Okay, sounds good to me if that works. @rgommers would you be willing to turn on requiring signed commits for array-api-extra's |
Sure - done now! |
@tupui it looks like that doesn't work, on data-apis/array-api-extra#221 I see: ![]() |
Well that's unfortunate then I guess that's not an option for repos like these. |
I think we might want to amend the SPEC, unless we seriously want to recommend a workflow like the release manager squashing all commits over to a separate release branch locally. Perhaps replacing it with a recommended policy that release managers sign their commits would be good enough. Any thoughts @matthewfeickert ? |
We could add a note saying that there are some caveats to use this feature in GitHub. What we still want to recommend is that people sign their commits and yes encouraging specific people like release manager to sign the last commit before a release is a good idea. |
I am looking into addressing the following sentence of SPEC 8 at data-apis/array-api-extra#166:
Since I don't want to require signed commits from every contributor, the easiest way to do this seems to be to require signed commits just on the release branch. The GitHub docs at https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches#require-signed-commits say:
But that doesn't really answer these questions: can I merge unsigned commits into a protected branch as a signed merge commit? Would such a merge have to be a squash? If so, can I do this from the GitHub web UI, or only locally?
cc @matthewfeickert
The text was updated successfully, but these errors were encountered: