gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitc01e66c6c01e66c6|||PR approvals follow-up: live Merge after status writes, helpers (#52)mrec01e66c6/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

  • 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
  • 2a89d8d0|||PR person approvals: Approve button for people; merge needs the required checks or a listed person's approval (#52)mre
  • 83f0c953Report person approval verificationmre
  • 3ae94b86Record browser failures and verify owned tab cleanupmre
  • 54eec687Gate person approvals and merge alternativesmre
  • 12b08829Add person approvals for pull request headsmre
  • 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