Skip to content
Source
Sign inSign up

Turn on sync

Move from GitHub / Sync

Turn on GitHub sync

Outside people keep working on GitHub, and you want their issues, pull requests and comments here in seconds. Connect GitHub once, then turn on sync in the settings of the repository.

5 min read

Before you start

You need:

  • A repository imported from GitHub with its issues and pull requests. See Import from GitHub.
  • Admin access to the repository here and on GitHub.
  • If your GitHub organization limits OAuth apps: an organization owner who approves the OAuth app of this site.

If the settings say "Import the repository again to turn on sync", do that import again. The first import did not keep the GitHub ids that sync needs.

1. Connect GitHub

Each person who acts here on items from GitHub does this step once.

  1. Open Connected accounts.
  2. If the repository is private on GitHub, turn on Private repositories too under GitHub sync.
  3. Click Connect GitHub for sync, then accept on GitHub.

If you already sign in with GitHub, connect the same GitHub account. Another account is refused.

If the connection fails, Connected accounts shows GitHub sync did not connect with the reason:

CauseMessage
You clicked Cancel on GitHub.You cancelled on GitHub. Connect GitHub for sync again when you are ready.
You were signed in to GitHub with another account. The message names the account to use.This is not the GitHub account connected to your account. Sign in to GitHub as octocat, then connect GitHub for sync again.
Another errorConnecting GitHub for sync failed. Try again.

2. Turn on sync

  1. Open the repository, then Settings, then GitHub sync under Integrations.
  2. Type the Release branches, for example main, alpha. The default is the default branch.
  3. Turn on Sync with your GitHub repository.

You are now the sync owner. Your token creates the webhook on GitHub and reads GitHub for changes that a webhook missed.

Tip

For a new import, turn on Keep in sync with GitHub on the import form. Sync turns on when the import is done. For each repository of an organization at once, see Sync every repository of an organization.

From a terminal:

src github-sync enable --branches main,alpha
src github-sync status
src github-sync disable

REST and MCP have the same calls. See /llms.txt on the site.

Done

Sync is on, and the repository shows Synced with GitHub. Your team works on TanStack Source, and outside people keep using GitHub. They see the replies, reviews and merges of your team under each person's own GitHub account.

The pull requests of your team into a release branch go through the checks and reviews that GitHub requires. This is the same as for any other pull request there. You see those checks here, and merge when ready waits for them. See Checks from GitHub.

Run the factory on items from GitHub

Outside people open issues and pull requests on GitHub, and you want the factory agents to audit, review and triage them too. By default, the factory does not run on items from GitHub.

You need:

  1. Open the repository, then Settings, then GitHub sync under Integrations.
  2. Turn on Run the factory on items from GitHub. It saves at once.

From a terminal:

src github-sync enable --factory
src github-sync status

status prints factory: on. --factory=false turns it off. REST (PATCH /api/v1/repos/{owner}/{repo}/github-sync) and the MCP tool update_github_sync take factory, true or false.

While it is on, items from GitHub start the agents that are on, the same as items made here:

  • A new issue or pull request, when it shows here. With screening on, that is when screening shows it.
  • A draft that is marked ready for review, and a label added on GitHub.
  • A new push to a pull request on GitHub. It counts as a push of a person.
  • A moved base, a failed CI run, and a new comment.

Items that were here before you turned it on do not start. To run agents on them, see Start agents on many items.

The factory gives the GitHub author of an item a role:

  • A GitHub author who signs in here with GitHub, or connected GitHub for sync: the role of that account here.
  • Any other GitHub author: an outside author. Their runs are untrusted and count toward the runs per author each day. The agents that change code wait for a clean audit.

These runs act as the bot. Their comments and reviews stay here, with an Only here mark, and they do not label or assign the item on GitHub. A run that you start by hand acts on GitHub as you. See What agents can do.

What GitHub gives this site

  • Access: read:org, public_repo and workflow, or read:org, repo and workflow with Private repositories too. Reading organization ids in issue and pull request history needs read:org. A push that changes .github/workflows/ needs workflow.
  • The token: the server keeps it encrypted and never shows it. Disconnect deletes it here and revokes it on GitHub.