gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmainfe209ffeMerge branch 'w56-owner-members' into mainGitoriamain/docs/pr-deploy-plan.md

2.7 KB

  1. # Plan: one shared PR-based deploy-init (#50 step 3)
  2. 2026-11-09, Gitoria. Status: PLAN accepted by Apollo 2026-11-09; switch-on gitoria 2026-11-12, others after one proof PR each. Flow: branch → PR → Kunibert → merge → deploy.
  3. ## Today
  4. `worldapi-conductor/deploy-init.sh <app>` checks out the local HEAD in a worktree, runs boot gate + `deploy.sh` gates, deploys, and after rc=0 runs `git push` (main). With "Refuse direct pushes to the main branch" switched on, that push is refused.
  5. ## Change
  6. 1. **Branch + PR.** A worker commits on a branch `<topic>` and pushes it; the PR is opened by the commit subject `|||PR ` (into main). Local main is never committed to directly.
  7. 2. **Kunibert.** Kunibert reviews the PR against hybriel/docs/HL-STANDARD.md (rule ids cited) and sets status context `kunibert`. App-only repos keep approve + success. The creator's recorded OR decision ([gitoria#52](https://tickets.worldapi.org/gitoria.worldapi.org/52), DECISIONS.md "PR approvals": "PR merges should not be possible without his or my approval" and "yes add the approve button for people") applies only when the owner adds person entries: all required app contexts succeeding OR any listed person approving the current head permits merge. People-only entries require a listed person's approval.
  8. 3. **Merge.** The owner (caramboleyo, button on /pulls) or a member conductor with its own gtr_ user token: `POST /api/repos/<repo>/pulls/N/merge {"head":"<sha>"}` (apps-api.md §7; apps cannot merge).
  9. 4. **Deploy.** `deploy-init.sh <app>` changes in three lines:
  10. - `git -C $d fetch -q origin main` and the worktree at `origin/main` (not local HEAD); refuse if local main has commits not on origin/main ("FAILED — unmerged local commits").
  11. - gates/boot gate/deploy unchanged.
  12. - after rc=0 no `git push`; `git -C $d merge --ff-only origin/main` keeps the local folder current.
  13. A broken merge is fixed by a new PR, never by a push to main.
  14. ## Open before the switch-on
  15. - **Who merges (decided, his rule 2026-10-31 via Apollo 2026-11-09):** conductors merge bug fixes and utility changes themselves; caramboleyo merges features after accepting them. So every app conductor gets its own gitoria user (member of its repo, #48 member merge) and its own gtr_ token in `~/.config/<app>/gitoria-token`; features wait for his button.
  16. - Kunibert as **required** check per repo (today non-blocking on 9 app repos).
  17. - Records-only commits (LOG.md) also go through PRs once the setting is on; conductors batch them into one PR per day, or LOG.md moves out of git.
  18. ## Switch-on (proposal)
  19. Per repo, in this order: deploy-init change live (works with the setting off too) → one proof PR per app merged + deployed → owner switches the setting on. Proposed date: 2026-11-12 for gitoria first, the other app repos after their conductors confirm one proof PR each.

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