feat(orb): installation registry from Orb App install events - #1299
Merged
Conversation
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1299 +/- ##
=======================================
Coverage 95.14% 95.14%
=======================================
Files 179 180 +1
Lines 20124 20143 +19
Branches 7239 7243 +4
=======================================
+ Hits 19147 19166 +19
Misses 386 386
Partials 591 591
🚀 New features to boost your workflow:
|
Second piece of the central Gittensory Orb GitHub App (#1255). Maintains orb_github_installations (migration 0064) from the verified /v1/orb/webhook `installation` lifecycle events — one row per install of the shared Orb App, recording account + repository_selection and the suspend/unsuspend/deleted lifecycle. This is the registry onboarding + the token-broker (later PRs) read to know which installations exist and who owns them. - registered=0 by default — the Mirror-style manual-onboarding gate (an install is RECORDED but not trusted/active until a human opts it in), mirroring #1274. - The upsert runs synchronously in the receiver, BEFORE recording the webhook event, so a failed registry write is flipped to "error" + 500 and GitHub redelivers (the dedup guard only suppresses non-error rows). No-op for every non-installation event. Additive; stacked on #1293 (the webhook receiver). installation_repositories repo-delta tracking and PR-outcome processing are follow-ups. Advances #1255.
JSONbored
force-pushed
the
feat/orb-installation-registry
branch
from
June 25, 2026 02:50
130ecf0 to
f50c611
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Second piece of the central Gittensory Orb GitHub App (#1255) — maintains a new
orb_github_installationsregistry (migration0064) from the verified/v1/orb/webhookinstallationlifecycle events (created / new_permissions_accepted / suspend / unsuspend / deleted). This is the registry that onboarding + the token-broker (later PRs) read to know which installations exist and who owns them.registered=0by default — the manual-onboarding gate (Mirror-style; an install is recorded but not trusted until a human opts it in).error+500→ GitHub redelivers.Now based on
main(the webhook receiver #1293 merged). (Supersedes #1295, which GitHub auto-closed when #1293's branch was deleted — same code, rebased.)Validation
npm run test:cigreen; 100% branch coverage oninstallations.ts+ thewebhook.tschanges.Advances #1255.