Repository navigation
app/: github:link-installation staff command - #151
Merged
Merged
Conversation
… App installation as set up for an organization
ndbroadbent
force-pushed
the
staff-link-installation
branch
from
December 3, 2026 22:22
d385bc7 to
0b9cc07
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.
A staff command for what production's docspring needed at cutover: link a GitHub App installation to an organization made by hand. Without the link, its admins' checklists would offer "Already installed on DocSpring: Set it up", and that would create a second organization. The docspring row itself was written by hand today, through talira infra. This command means the next one doesn't need SQL.
github_installationswith the organization, the account andset_up_by, keeping an existingset_up_by, as setting it up in the app does. The checklist's install step then counts as done there.--set-up-byand an empty reason.admin_auditrow: toolgithub:link-installation, clientconsole, the arguments and the reason. The row is written in the same transaction as the link.docs/deploy.mdlists it with the other staff commands.Test:
staff_commands::github_link_installation_links_audits_and_refuses_a_move. Tests, fmt and clippy pass on docspring-dev.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.