Repository navigation
docs: add Signed commits section to CONTRIBUTING #212
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 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -428,3 +428,20 @@ Questions? Open an issue or check CLAUDE.md for project context. | |||||||||
|
|
||||||||||
| *Last Updated*: 2025-11-22 *Version*: 1.0 *Maintainer*: See | ||||||||||
| MAINTAINERS.adoc | ||||||||||
|
|
||||||||||
| == 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. | ||||||||||
|
Contributor
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: printf '%s\n' '--- CONTRIBUTING.adoc ---'
sed -n '430,452p' CONTRIBUTING.adoc
printf '%s\n' '--- ROADMAP.adoc ---'
sed -n '50,66p' ROADMAP.adoc
printf '%s\n' '--- docs/ROADMAP_TO_V1.adoc ---'
sed -n '50,66p' docs/ROADMAP_TO_V1.adoc
printf '%s\n' '--- force-push references ---'
rg -n -i -C 2 'force[- ]push|force push|signed commits|new PR|new pull request' CONTRIBUTING.adoc ROADMAP.adoc docs/ROADMAP_TO_V1.adoc SIGNING-POLICY.adoc 2>/dev/nullRepository: hyperpolymath/valence-shell Length of output: 4419 Allow the existing PR when an authorised force-push is possible. The guidance restricts history-rewrite force-pushes, but it allows them with explicit owner sanction. When that sanction exists and the contributor can update the branch, retain the existing PR. Open a new PR only when the branch cannot be updated. Suggested fix- branch with signed commits (`git cherry-pick -S`) and open a new PR.
+ branch with signed commits (`git cherry-pick -S`). With explicit owner sanction
+ and permission to update the branch, retain the existing PR; otherwise, open a
+ new PR.📝 Committable suggestion
Suggested change
🤖 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.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: hyperpolymath/valence-shell
Length of output: 8943
🏁 Script executed:
Repository: hyperpolymath/valence-shell
Length of output: 1917
🏁 Script executed:
Repository: hyperpolymath/valence-shell
Length of output: 1769
Nest the signed-commit policy under the guide.
== Signed commitscreates a sibling level-1 section to== Contributing to Valence Shell. The guide’s topic sections use level 2 headings, so this section is outside the guide’s hierarchy. Change it to=== Signed commits.Suggested fix
📝 Committable suggestion
🤖 Prompt for AI Agents