Connect GitHub
Install the Theseus GitHub App, choose repositories, and decide when pull requests get guides.
Theseus reads pull requests through its GitHub App. Connecting it to a GitHub account, your own or an organization, creates that account's workspace. A workspace connects one GitHub account, and an account connects one workspace. A workspace owner or admin installs the App once and chooses the repositories; after that, pull requests in those repositories get guides automatically. Theseus supports private and internal repositories only. Public repositories aren't supported, even when the installation includes them.
On GitHub, the App is called ardent-theseus. Look for that name in your organization's Settings → GitHub Apps and in your own Authorized GitHub Apps.
The App gives Theseus access to the code, not people access to Theseus: every reader still needs their own GitHub access to a repository to see its guides.
Install the App
Link to this sectionInstalling the App creates the workspace for the account you install it on.
- Sign in with no workspace yet, or choose Create new workspace in the workspace menu. With no workspace, GitHub first asks you to let Theseus read your repositories; then, on Get started with Theseus, choose Install the GitHub App. That page also lets you preview one of your repositories first and install the App from the preview, which keeps its guides.
- If Theseus asks, choose Connect your GitHub account first. This links your own GitHub identity; it doesn't install anything.
- On Create a Theseus workspace, choose your own account (shown as your login's repositories) or one of your organizations. Add an organization from GitHub covers any other account. GitHub opens in the same tab, so a pop-up blocker doesn't get in the way.
- On GitHub, pick the repositories Theseus may read. If you don't own the organization, GitHub sends the request to an owner; once they approve it, you join the organization's workspace. They don't need a Theseus account.
- Back in Theseus, the new workspace opens.
If the App is already installed on the account you choose, Theseus connects it at once and opens its workspace. An account that already has a workspace reconnects it, with its guides and settings, instead of creating a second one. An organization owner approving the request you started from Theseus creates the workspace too, as long as you can still use Theseus. Installing the App from GitHub's own page creates it when the person who installed it can use Theseus; otherwise the installation waits until someone who can use Theseus chooses its account on the setup page.
To add or remove repositories later, choose Manage repositories on Pull requests, in the repository menu or in Settings → GitHub; it opens the installation on GitHub. For an organization, GitHub opens the installation's settings only to its owners; anyone else sees Only a GitHub organization owner can change this and should ask an owner to change the repositories. Theseus supports private and internal repositories only: a public repository the App can reach shows in Settings → GitHub marked Not supported, with no page of its own.
Preparing large repositories
Link to this sectionWhen Theseus discovers a connected repository that looks large, it prepares a private snapshot of its default branch in the background. A snapshot is a cached copy of the code used for repository reads. Connecting and opening reviews stay available while this runs; preparation creates no guide and uses none of your guide allowance.
For the first seven days, default-branch pushes can refresh a confirmed large repository's snapshot even before its first guide. After that, refreshes require recent guide activity. Repositories added to the App later get the same preparation.
Preparation is best effort. Theseus uses GitHub's repository-size estimate to choose what to inspect, so some large repositories are discovered only when a guide first needs them. A prepared default branch also may not match a PR's exact commits. For example, a PR based on an older commit can still need a separate snapshot; you can generate its guide while preparation is running.
Reinstall after the App is removed
Link to this sectionIf the App is uninstalled on GitHub, opening the workspace shows Reinstall Theseus on followed by the account's name. Choose Reinstall on that account and install the App again; the workspace opens with its guides and settings once GitHub confirms the installation. If you don't own the account, ask an owner to reinstall it, or choose Reinstall on it to send them a request. Choose another account lists your other accounts instead.
If the App is suspended instead, pages say Reinstall GitHub and new pull requests get no guides. An owner or admin chooses Reinstall GitHub App, which opens the installation on GitHub to unsuspend it.
If you're not an owner or admin
Link to this sectionMembers can't change the App. When it's suspended, choose Copy setup request and send it to an owner or admin; See owners and admins lists who they are.
Who joins a new workspace
Link to this sectionThe workspace is named after the account. Everyone GitHub lets read one of its repositories becomes a member. On your own account, collaborators on your repositories join and see only the repositories they can read; you're its only admin. Workspaces created as personal workspaces before keep working as they are, with the same address, guides and settings.
If you choose another account on GitHub's install page, Theseus connects that account's own workspace instead.
To connect an organization's installation, you need active membership of the organization on GitHub and your own access to at least one private or internal repository the App covers. Connecting an existing workspace also needs its owner or admin role.
Choose when guides are generated
Link to this sectionRight after an installation creates a workspace, its owners and admins, usually just whoever installed the App, are asked How should Theseus write guides? once. Until one of them answers, the workspace generates no guide on its own. The answer applies to every repository the installation covers, and to repositories added later:
| Answer | Same as |
|---|---|
| When I ask (preselected) | Manual only |
| When a pull request is ready for review | Once ready for review, with Update on new commits off |
| Every pull request | All pull requests, with Update on new commits off |
None of the answers generates guides for pull requests that are already open. Afterwards, Pull requests opens, where each open pull request without a guide has Generate a guide. Change a repository's choice any time in its settings.
Each repository's page, opened from its row in Settings → GitHub, sets when its guides are generated. Owners and admins change it; members see it read-only.
Guides chooses which pull requests get one:
| Choice | Generates a guide |
|---|---|
| All pull requests | When a PR opens or reopens, drafts included. The default for workspaces created before this question |
| Once ready for review | When a PR opens or reopens ready for review, or a draft is marked ready |
| Manual only | Only when someone asks |
Update on new commits, below it, also generates a guide on every push and when the PR's base changes. It's on by default and doesn't apply to Manual only.
Every automatic guide uses one from the workspace's allowance (Plans and usage), so Once ready for review suits teams that push many commits to drafts. Closed and merged PRs don't get automatic guides, and connecting doesn't generate guides for PRs that are already open.
Turning on Update on new commits, for PRs the Guides choice covers, catches up a repository's open PRs: any without a guide for its latest commits gets one within about a minute, without a new push. With it off, PRs still wait for the next open, reopen or ready-for-review event.
Theseus keeps one status comment on each PR showing where its guide stands (generating, ready, paused or failed) with a link to it. The comment also names the workspace: only its members, the people who can read the repository on GitHub, can open the guide.
Whatever the mode, anyone in the workspace can ask for a guide on an open, closed or merged PR: with Generate a guide in the app, the CLI, or a comment on GitHub.
theseus generate example/project#42 --waitAsk for a guide from GitHub
Link to this sectionComment @theseusbot generate on a pull request to generate a guide now, whatever the repository's mode. The command must start the comment. Theseus reacts with 👀 and updates its status comment as the guide progresses. If nothing changed since the last guide, it shows that one again without using another from the allowance.
Only people with a role on the GitHub repository whose GitHub account belongs to the connected workspace can ask. Anyone else gets a 😕 reaction and a reply explaining why. Comment @theseusbot help to list the commands.
For GitHub to autocomplete the name, invite the theseusbot account to the repository with the Read role; the command works without it.
If it doesn't work
Link to this section| What you see | What to do |
|---|---|
| Your request was sent to the organization’s owners | Wait for an owner to approve it on GitHub; you then join the organization's workspace. |
| GitHub didn’t let your account connect that installation | Sign in to GitHub with the account you use for Theseus, and check that you're an active member of the organization and the App isn't suspended there. If the organization uses single sign-on, sign in to it on GitHub, choose Sign in again, then connect again. |
| No repositories visible to your account | Ask a GitHub organization owner to make sure you and the App can both reach the same private or internal repository, then connect again. |
| GitHub setup didn’t finish | Nothing was connected. Choose the account again on the setup page. |
| Reinstall GitHub | The App was suspended, and new PRs get no guides. An owner or admin chooses Reinstall GitHub App to unsuspend it on GitHub; members can copy a setup request for them. |
| Check your GitHub access | GitHub no longer shows your account the organization's repositories. Check your membership, then choose Sign in again. |
The Reinstall GitHub and Check your GitHub access notices appear on Pull requests, Inbox, Changelog and GitHub. For a repository that's missing for one person, see Troubleshooting.