-
-
Notifications
You must be signed in to change notification settings - Fork 0
docs: add Signed commits section to CONTRIBUTING #62
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,3 +69,20 @@ link:CODE_OF_CONDUCT.md[Code of Conduct]. | |
|
|
||
| By contributing, you agree that your contributions will be licensed | ||
| under the same license as the project (see LICENSE). | ||
|
|
||
| == Signed commits | ||
|
|
||
| Every commit that reaches the default branch must be signed; a ruleset refuses | ||
| unsigned pushes. Estate policy: | ||
| https://github.com/hyperpolymath/standards/blob/main/docs/SIGNING-POLICY.adoc[SIGNING-POLICY]. | ||
|
|
||
| * **People and interactive agents** sign with an SSH key registered on GitHub | ||
| as a *signing* key (`gpg.format=ssh`, `user.signingkey=<key>.pub`, | ||
| `commit.gpgsign=true`). The committer email must be verified on that account. | ||
| * **Apps, bots and workflows** never `git push` local commits. They write | ||
| through the API (`createCommitOnBranch` or the estate `signed-push` action) | ||
| so that GitHub signs each commit. | ||
| * Merge PRs with **squash**. The ruleset checks every commit on the PR branch, | ||
| not just the result, so one unsigned commit blocks the merge. Re-create such a | ||
| branch with signed commits (`git cherry-pick -S`) and open a new PR. | ||
| Rebase-merge replays commits unsigned and is disabled. | ||
|
Comment on lines
+85
to
+88
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: sed -n '1,15p' .github/settings.yml
sed -n '42,62p' .github/settings.yml
sed -n '132,160p' .github/settings.yml
sed -n '80,92p' CONTRIBUTING.adoc
sed -n '120,142p' .github/CONTRIBUTING.mdRepository: hyperpolymath/patch-bridge Length of output: 3695 Disable the merge modes that contradict the squash-only policy.
Suggested fix allow_squash_merge: true
- allow_merge_commit: true
- allow_rebase_merge: true
+ allow_merge_commit: false
+ allow_rebase_merge: false🤖 Prompt for AI Agents |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Nest
Signed commitsunderContributing.== Signed commitsmakes this a sibling of== Contributing. The existing contribution topics use===. Change this heading to=== Signed commitsso the section outline keeps the signing policy withinContributing. Asciidoctor maps these markers to different section levels. (docs.asciidoctor.org)Suggested fix
📝 Committable suggestion
🤖 Prompt for AI Agents