Repository navigation
docs: add Signed commits section to CONTRIBUTING #74
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 |
|---|---|---|
|
|
@@ -119,3 +119,20 @@ We follow [Conventional Commits](https://www.conventionalcommits.org/): | |
| [optional body] | ||
|
|
||
| [optional footer] | ||
|
|
||
| ## Signed commits | ||
|
|
||
| Every commit that reaches the default branch must be signed; a ruleset refuses | ||
| unsigned pushes. Estate policy: | ||
| [SIGNING-POLICY](https://github.com/hyperpolymath/standards/blob/main/docs/SIGNING-POLICY.adoc). | ||
|
|
||
| - **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. | ||
|
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 '100,150p' .github/CONTRIBUTING.md
rg -n -i 'force.?push|new PR|unsigned|signed commit|rebase.merge|squash|branch protection|ruleset' .github docs CONTRIBUTING* 2>/dev/nullRepository: hyperpolymath/ponyiser Length of output: 3294 🌐 Web query:
💡 Result: Update the existing PR branch after signing its commits. GitHub allows contributors to rewrite and force-push signed commits to the PR head branch. A new PR is not required. The documented squash-merge setting does not change this. Suggested fix- 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.
+ not just the result, so one unsigned commit blocks the merge. Rewrite the PR
+ branch with signed commits (`git cherry-pick -S`) and force-push the rewritten
+ history to update the existing PR.🤖 Prompt for AI Agents |
||
| Rebase-merge replays commits unsigned and is disabled. | ||
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.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: hyperpolymath/ponyiser
Length of output: 2719
🌐 Web query:
GitHub rulesets required signatures unsigned commits pushed require signed commits documentation distinguish signed pushes💡 Result:
🌐 Web query:
site:github.com/hyperpolymath/standards SIGNING-POLICY.adoc required signatures signed commits unsigned pushes💡 Result:
Refer to unsigned commits, not unsigned pushes.
“Signed push” can mean a signature on the push transaction. The ruleset checks commit signatures. Although the following bullet clarifies this, replace “unsigned pushes” with “pushes containing unsigned or unverified commits” to avoid ambiguity.
Suggested wording
📝 Committable suggestion
🤖 Prompt for AI Agents