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
- f1-broken-json
- f2-api-bugs
- gp-gate-ports
- heap-revert
- hl25-records
- ident-chooser-selector
- mainmain branch
- p51-public-pr-reads
- records-1112
- s25-no-session-on-login-error
- v59
- w52-person-approval
- w52b-approval-followup
- w52c-header-phone
- w53-pulls-speed-pr
- w54-repo-rename-pr
- w55-rename-org
- w56-owner-members
- w62-pr-close
- w63-force-push
- w64-org-slash
Latest commits
- 55c84779Merge branch 'gp-gate-ports' into mainGitoria
- 57af42bbREADME: point to deploy.sh for the port listmre
- d63375d2README: gate commands with explicit portsmre
- feeaa701|||PR gates: explicit ports only, deploy.sh passes themmre
- 6cc1f943Merge branch 'records-1112' into mainGitoria
- 9448c438|||PR records: LOG, missions and reports since 11-09mre
- 6dc08a8eMerge branch 'p51-public-pr-reads' into mainGitoria
- 7b88cfe0Type publicReaderOfRequest parameters (L10)Gitoria
- 2a4b3dc1|||PR Anonymous reads of public repos' pulls and statusesmre
- 21b2c141Merge branch 's25-no-session-on-login-error' into mainGitoria
- 698458e2|||PR No session for cookieless login errors: READMEmre
- cce7b785|||PR No session for cookieless login errorsmre
- 678d6303Merge branch 'v59' into mainGitoria
- 5803cf4f|||PR vendor: Hybriel set-day59 and GC budget 32 MiBmre
- 9eff6627Merge branch 'f2-api-bugs' into mainGitoria
- 26117255|||PR apps API: review comments on files with spaces in their namemre
- b8796cecMerge branch 'f1-broken-json' into mainGitoria
- 2f2959c5|||PR apps API: broken JSON body gives 400 invalid_json, not 500mre
- f7c6ca07Merge branch 'ident-chooser-selector' into mainGitoria
- 691abb8e|||PR tests: find ident identity choice without the removed .choose classmre