feat(orb): installation registry from Orb App install events - #1295
Closed
JSONbored wants to merge 1 commit into
Closed
feat(orb): installation registry from Orb App install events#1295JSONbored wants to merge 1 commit into
JSONbored wants to merge 1 commit into
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 @@
## feat/orb-webhook-receiver #1295 +/- ##
==========================================================
Coverage 95.09% 95.09%
==========================================================
Files 179 180 +1
Lines 20092 20111 +19
Branches 7228 7232 +4
==========================================================
+ Hits 19106 19125 +19
Misses 395 395
Partials 591 591
🚀 New features to boost your workflow:
|
JSONbored
force-pushed
the
feat/orb-installation-registry
branch
from
June 25, 2026 02:04
07c03f6 to
5a74db1
Compare
JSONbored
force-pushed
the
feat/orb-webhook-receiver
branch
from
June 25, 2026 02:04
2a72c81 to
2f6f189
Compare
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:06
5a74db1 to
ae8ce9e
Compare
1 task
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 — one row per install of the shared Orb App: account,repository_selection, and the suspend / unsuspend / deleted lifecycle. This is the registry that onboarding (PR #5) and the token-broker (PR #6) read to know which installations exist and who owns them.registered=0by default — the Mirror-style manual-onboarding gate (an install is recorded but not trusted/active until a human opts it in), mirroring feat(orb): registration-gate the fleet + cap ingest body (das-github-mirror model) #1274'sorb_instancestrust model."error"+500and GitHub redelivers (the dedup guard only suppresses non-error rows). No-op for every non-installationevent.installation_repositoriesrepo-delta tracking and PR-outcome processing are follow-ups (#7).Scope
0064is the next contiguous number; flag-independent (only fires on verified Orb webhooks)Validation
npm run test:ci— greensrc/orb/installations.ts+ thewebhook.tschanges (all install actions: created / new_permissions_accepted / suspend / unsuspend / deleted / unknown; non-installation event; missing/zero installation id; minimal-payload null fields; and the upsert-failure → 500 + error-row path)Advances #1255.