Connect GitHub
Connect GitHub to create diagrams and documentation from your code, ask questions about it in chat, and refresh diagrams as the code changes. Topolix reads your repositories; these actions do not change code in GitHub.
Connect and select repositories
Section titled “Connect and select repositories”Any workspace can connect your personal GitHub account, one or more GitHub organizations, or both.
Connecting takes three steps, each with its own button:
- Authorize: once per person. It proves who you are on GitHub, so Topolix can list where the Topolix GitHub App is installed for you.
- Install: once per account or organization, in GitHub. It gives the App access to the repositories you choose.
- Connect: once per workspace. It lets the workspace use that installation.
- Open GitHub under Sources in the workspace sidebar. You must be a workspace owner.
- Choose Connect GitHub and approve the Topolix GitHub App in GitHub. GitHub asks only the first time.
- Back in Topolix, every account and organization where the App is installed for you is listed. Choose Connect next to the one you want:
- Organization: you must be an administrator of that GitHub organization. Otherwise it says which admins can connect it.
- Personal account: you must be that GitHub account.
- If it isn’t listed, choose Install on GitHub (or Install on another account or organization), pick the account or organization, and grant it access to the repositories you want to use. You return with it highlighted, ready to Connect. If you aren’t an administrator of the organization, GitHub sends your request to its administrators instead, and it shows up once they approve it.
- Select the repositories the workspace can use. Use Select all to include every repository listed. Nothing is included automatically.
- During setup, review your selection, then choose Organize my workspace to start mapping. You can also generate individual repository diagrams from GitHub settings.
Installing the App makes repositories available to connect. It does not add any repository to a workspace until an owner selects it.
If a teammate already connected GitHub, you can use the workspace’s connections and repositories without authorizing your own GitHub account. You need it only to connect another account or organization.
Personal accounts and organizations
Section titled “Personal accounts and organizations”| Organization | Personal account | |
|---|---|---|
| Who can connect it | A workspace owner who administers the GitHub organization | The workspace owner whose GitHub account it is |
| Who can add repositories | Any workspace owner | Only the person who connected it (its holder) |
| Who can remove repositories or disconnect it | Any workspace owner | Any workspace owner |
| When its holder leaves the workspace | Keeps working | Disconnected automatically |
GitHub settings show each connection’s type and, for a personal account, who connected it. Other owners see only the repositories selected from a personal account and can remove them, but cannot add more.
Confirming access to personal repositories
Section titled “Confirming access to personal repositories”Some actions let people see a personal account’s repositories, including private ones, for the first time:
- connecting a personal account to a workspace that has other members or open invitations,
- adding a personal account’s repositories while other people are in the workspace,
- inviting a member or making a member an owner,
- creating a public link to a diagram built from a personal account’s repositories.
Topolix then lists the personal accounts and repositories concerned and asks you to confirm before it continues. Confirmations are recorded in the workspace’s audit log.
Your login and the workspace connection
Section titled “Your login and the workspace connection”Your GitHub authorization verifies who you are when you connect an installation. The GitHub App installation provides ongoing repository access. If your authorization expires, choose Authorize again; existing connections keep working meanwhile.
An organization’s connection keeps working if the person who connected it leaves Topolix, disconnects their GitHub authorization, or lets it expire. A personal account’s connection ends when its holder leaves the workspace.
To stop repository access, disconnect the connection in Topolix or remove the App’s access in GitHub. Disconnecting your GitHub authorization alone does not do this.
Who can use the connected code?
Section titled “Who can use the connected code?”Workspace members do not need their own GitHub access. Inviting someone gives them access to source-derived information according to their Topolix role:
| Role | Access |
|---|---|
| Viewer | View diagrams and documentation, and ask chat questions about connected code. |
| Editor | Viewer access, plus edit diagrams and documentation and request standard refreshes. |
| Owner | Editor access, plus manage GitHub connections, repository selection and public sharing. |
Chat can read selected repositories that have been mapped and remain enabled to check answers against the code. Answers can include code excerpts. Consider this when inviting members, even if they cannot access those repositories directly in GitHub.
AI processing and sharing
Section titled “AI processing and sharing”Analysis and chat send repository content to Topolix’s diagram-generating AI agents. Generated answers, diagrams and documentation may contain code excerpts or sensitive implementation details. Review generated content before sharing it externally.
Public sharing is one setting per workspace, off until a workspace owner turns it on. New public links expire after seven days. Anyone with a valid public link can view its shared content. A public link to a diagram built from a personal account’s repositories needs the confirmation above, and only the person who connected that account can create it unless they allow public links for it in GitHub settings. See Save, export, and share for sharing and revoking links.
Review the generated diagram
Section titled “Review the generated diagram”Generation analyzes the repository and creates a source-backed diagram. It can take time and uses your workspace’s available generation credits. Follow the job status before starting another generation for the same source.
Open the result and check that the main components, boundaries, and connections match your understanding. Move the diagram into the appropriate folder and add context in its documentation.
Branches, drift, and refresh
Section titled “Branches, drift, and refresh”Open Source settings from the diagram’s menu to inspect the tracked branch and available sync settings.
A source update can mark the diagram as having drift: the repository has changed since the last generation. It does not mean the diagram was already regenerated. Refresh it manually or configure the available automatic refresh settings.
Refreshing regenerates source-derived content. Review important manual changes before doing so. The diagram’s name and workspace location are preserved when the source refreshes.
Stop access or remove a diagram
Section titled “Stop access or remove a diagram”Removing repositories and disconnecting work even when the workspace is over its plan’s limits and otherwise read-only.
| Action | What happens |
|---|---|
| Disconnect under Your GitHub account in Topolix | Disconnects your GitHub authorization. Established connections keep working. |
| Deselect a repository | Stops the workspace’s source access to the repository and revokes affected public links. Existing private diagrams remain. |
| Disconnect a connection from the workspace’s GitHub settings | Stops that connection’s source access and revokes affected public links. Existing private diagrams remain. The App stays installed in GitHub. |
| Remove a repository from the App’s access, or uninstall the App in GitHub | Stops access to the affected repositories and revokes affected public links when Topolix processes the change or rechecks access. Existing private diagrams remain. |
| Unmap a repository in Topolix | Removes its generated diagram from Topolix. It does not delete or modify the GitHub repository. |
Reconnecting does not restore revoked public links. Stopping source access does not erase existing private content, previously generated answers, or copies already shared or downloaded.
If a repository is missing or access stops
Section titled “If a repository is missing or access stops”- Check that you are in the correct Topolix workspace.
- Ask a GitHub administrator to check the App’s installation and repository access.
- Ask a workspace owner to check the repository selection in Topolix. For a personal account, only the person who connected it can add repositories.
- Follow Connect or Manage on GitHub if shown next to a connection. Authorizing your GitHub account again cannot restore a removed App installation or repository grant.
Go further
Section titled “Go further”Combine diagrams from multiple repositories to examine system relationships, or write documentation for the folder that contains the generated diagrams.