Self-Host GitHub integration multiple workspaces #3733
Unanswered
anderson-oki
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We're self-hosting Multica and have multiple workspaces on the same instance. We'd like to connect the same GitHub App installation to more than one workspace.
What we tried:
Since the GitHub App was already installed on our org, clicking "Connect GitHub" from a second workspace didn't redirect back to the setup callback. We worked around this by manually calling /api/github/setup?installation_id=&state= directly.
What we found:
The setup callback uses an upsert with ON CONFLICT (installation_id) DO UPDATE SET workspace_id = EXCLUDED.workspace_id, which means connecting the installation to a second workspace silently disconnects the first one. The installation_id unique constraint enforces a strict 1:1 mapping between a GitHub installation and a workspace.
Questions:
Beta Was this translation helpful? Give feedback.
All reactions