Repository navigation
Let several LiveReview accounts share one GitHub App installation, plus /gh-login and link-preview fixes #139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
85b72a6
Share one GitHub App installation across LiveReview orgs
lovestaco 80be613
List the other LiveReview accounts sharing a GitHub installation
lovestaco 8e50853
Fix page title, description and link-preview tags
lovestaco f786c92
Make the /gh-login points readable
lovestaco 6ba7095
Size the /gh-login points at 14px
lovestaco e08060c
Show the other sign-in methods as tiles on /gh-login
lovestaco 38bb094
Make the /gh-login sign-in tiles smaller (36px)
lovestaco c26eb33
Make the /gh-login sign-in tiles 32px
lovestaco 87c8624
Open the Hexmos sign-in directly from the /gh-login tiles
lovestaco 5c34dff
Harden shared GitHub App installations (review fixes)
lovestaco File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
db/migrations/20261023090000_github_app_shared_installations.sql
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| -- migrate:up | ||
| -- One GitHub App installation can be connected to several LiveReview orgs (one connector per org), e.g. when two | ||
| -- people from the same GitHub organization each sign up. Each org still has at most one connector per installation. | ||
| DROP INDEX IF EXISTS uq_integration_tokens_github_app_installation; | ||
| CREATE UNIQUE INDEX IF NOT EXISTS uq_integration_tokens_github_app_installation_org | ||
| ON integration_tokens (provider_url, provider_app_id, org_id) | ||
| WHERE token_type = 'GITHUB_APP'; | ||
|
|
||
| -- migrate:down | ||
| -- Fails while an installation is connected to more than one org; remove the extra connectors first. | ||
| DROP INDEX IF EXISTS uq_integration_tokens_github_app_installation_org; | ||
| CREATE UNIQUE INDEX IF NOT EXISTS uq_integration_tokens_github_app_installation | ||
| ON integration_tokens (provider_url, provider_app_id) | ||
| WHERE token_type = 'GITHUB_APP'; |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Severity: critical
DeleteRepositoriesByConnectorExcept with an empty keep list deletes every repository for the connector. This is destructive and runs whenever allowed parses to empty.
Suggestions: