gitoria
All repositories: gitoria
2.3 KB
# P50 — repo setting "refuse direct pushes to the main branch" (gitoria#50)Task line (his words, relayed by Apollo): "proceed as you see fit" — on making all app repos PR-only with a Kunibert review.Ticket: https://tickets.worldapi.org/gitoria.worldapi.org/50 (read it).## Read first- /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md (fully)- /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md, docs/CODE-ORDER.md; COMPONENTS.md sections for forms/checkboxes as used in components/settings.hl. Copy working shapes; a framework gap → a DOCS line in the report, no workaround, no hand-written JS.- README.md (settings, transport, post-receive, merge), docs/git-backend.md.## Build- A per-repo owner setting in Settings: "Refuse direct pushes to the main branch" (main branch = the repo's PR target setting, else `main`). DEFAULT OFF; existing repos unchanged.- When on: a push (HTTPS and SSH) that updates or deletes that branch is refused with a clear one-line message naming the PR way (push a branch with a `|||PR ` commit, merge on /pulls). Other branches, tags and the creation of the branch in an empty repo stay allowed (decide and state which).- Merges done by gitoria itself (Merge button, merge API) must still work: they are not pushes.- Find where a push is accepted (pre-receive / receive-pack path / sshd guard) and enforce it in the server, not in the UI.- Show the state on the repo page or /pulls only if it costs a line; no new design.- README: one short entry. docs/apps-api.md: only if the pull/repo JSON changes (prefer no change).## Prove- New test (tests/…mjs, join the GATES list in deploy.sh): setting off → direct push to main works; on → refused over HTTPS and over SSH with the message; branch push + |||PR + merge via API works while on; only the owner can change the setting (403 otherwise).- All gates `LC_ALL=C`: node theme/check-theme.mjs ., node tests/browser.mjs, plus the GATES list. Ports only from 8720–8739 (check `ss -ltn`).## Limits- Worktree ../gitoria-P50 (branch p50) from main. Commit there; no push to the remote, no deploy, no merge into main. No "#N" in commit subjects.- No test data in his repos. Stop when done.- Report: reports/P50-REPORT.md in the worktree (what changed, file:line, test counts, gate results, DOCS lines). Then stop.
Branches
Latest commits
- fe209ffeMerge branch 'w56-owner-members' into mainGitoria
- fa0754c8|||PR repository owner transfer and members API (#55)mre
- 8862e537Merge branch 'w55-rename-org' into mainGitoria
- 014d2b7fOne immutable readers snapshot per move for the left-organization event (#53)mre
- 1859d506Decide who hears a repo left its organization by its readers before the move (#53)mre
- 499f25f2Review fixes for the Settings organization move (#53)mre
- ed3b922b|||PR move a repository into an organization in Settings (#53)mre
- 74ec2af8Merge branch 'w54-repo-rename-pr' into mainGitoria
- 9f7ce8d8Preserve rename compatibility and live page titlesmre
- c3d95b6e|||PR separate names and addresses, rename repositories in Settings (#53)mre
- ce08920dMerge branch 'w52c-header-phone' into mainGitoria
- 0bab9e46|||PR header: ident status wraps on phones instead of clippingmre
- e7af3eceMerge branch 'w52b-approval-followup' into mainGitoria
- c01e66c6|||PR approvals follow-up: live Merge after status writes, helpers (#52)mre
- 841da497Merge branch 'w53-pulls-speed-pr' into mainGitoria
- 80307ae2|||PR pulls page cache: live PR numbers, complete scans onlymre
- 69141f65|||PR pulls page: cache the git part per repo by branch tipsmre
- 155861f6Merge branch 'w52-person-approval' into mainGitoria
- b5435de8|||PR person approvals: second Kunibert round (#52)mre
- 3a8b2fb8|||PR person approvals: Kunibert review fixes (#52)mre