gitoria
All repositories: gitoria
3.7 KB
# #38 — what the reference reviewer (PR reviewer) needs, from the external reviewer 2026-11-01Source: The external reviewer, verbatim content summarised; based on what the reference reviewer uses on GitHub.Auth: app = bot user with own name; owner installs per repo; short-lived per-repo token (contents read, reviews/comments write, status write); every push HMAC-signed, delivery id, delivery log + redelivery.Events (repo, PR no., head sha, base ref, draft, author, title, body): 1 opened/reopened/ready/new commits incl. force-push; 2 review re-requested; 3 human reply to app's comment; 4 PR conversation comment (`@reviewer reset`); 5 thread resolved/unresolved (nice); 6 closed/merged.Reads: git fetch over HTTPS with token, PR head as ref (refs/pull/N/head) + base (diffs locally, no diff API); merge-base; PR meta; app's own review threads (id, path, line, resolved, comments) paginated; linked tickets text+comments (spec source).Writes: review (approve/request_changes/comment, body, inline by path+line new side; commentable lines clear or predictable rejection); reply in thread; resolve thread; status per head sha pending→success/failure with title+summary, red/green, can be required for merge; never merge.Also: event only after ref fetchable; rate limits documented.## Gitoria's comparison with option B (reports/E38-push-api-eval.md) — NOT HISOption B already covers: per-repo owner connect, HMAC signature + delivery id + redelivery, comments, status, never merge.Missing from option B, to add:1. Bot identity per app (reviews shown as the app's name).2. Git fetch over HTTPS with the app token (read-only) and a PR head ref refs/pull/N/head; merge-base. (B planned a diff API instead; the reference reviewer does not need it.)3. Review = one submission with verdict + body + inline comments; threads with reply and resolve (B had flat comments keyed by sha).4. More events: review re-requested, reply to app comment, conversation comment, thread resolved, closed/merged. Needs a re-request button and conversation comments on PRs (not in gitoria today).5. Status "required for merge" setting per repo.6. Read linked tickets: through gitoria (it holds the tickets key) or the reference reviewer connects to tickets himself — open question.7. Short-lived token (B planned a long-lived key, rotatable).8. Ordering: send the event only after the ref exists; documented rate limits.Size: B was ~13 steps; with these roughly 20+.## Reviewer's view on point 6 (2026-11-01, unconfirmed)Read linked tickets through gitoria: one read-only route with the app token, returning only the tickets the PR links to (text + comments). No second connect, same shape as the reference reviewer reading GitHub issues. To be checked with the external reviewer and caramboleyo.## Update on point 6 (2026-11-01, unconfirmed, replaces the view above)The external reviewer advises, and Kunibert now leans this way: Kunibert reads linked tickets DIRECTLY from tickets with its own read-only token. Gitoria only names which tickets a PR links (in the event payload or PR meta) and serves no ticket content. Tickets stays the source of truth; gitoria needs no tickets read route. Caramboleyo decides.## Signature header scheme (Apollo via Kunibert, 2026-11-01; unconfirmed by caramboleyo)HyperConductor has a general signed push: `POST /api/push/<chatId>`, header `X-Push-Signature-256: sha256=<hex HMAC-SHA256(secret, raw body)>`, plus `X-Push-Delivery`.Apollo wants gitoria's events to use the same header scheme, so a parked conductor can receive gitoria events directly. Plan change: gitoria signs every delivery with these two headers (replaces the gitoria-specific header names in E38 sec.3). This also answers the neutral-header question with tickets#51.
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