Skip to content
Source
Sign inSign up

Sync with GitHub

Move from GitHub / Sync

Sync with GitHub

Your repository stays public on GitHub, and outside people open issues and pull requests there. Your team wants to read, review and merge on TanStack Source, and not miss anything that happens on GitHub.

4 min read

GitHub sync keeps the two the same:

  • New issues, pull requests and comments on GitHub come here in seconds.
  • What people do here on those items goes to GitHub, under each person's own GitHub account.
  • A pull request that you open here into a release branch opens on GitHub too, so the checks and reviews that GitHub requires still apply.

A synced repository shows Synced with GitHub in its header and in the list of repositories of its owner. This badge tells readers that its issues and pull requests can also come from GitHub.

Pick your task

You want toRead
Turn on sync for a repositoryTurn on GitHub sync
Turn on sync for each repository of an organizationSync every repository of an organization
Know what syncs in each directionWhat syncs each way
Open an issue here that goes to GitHubOpen an issue that goes to GitHub
Comment, review and react on items from GitHubWork on items from GitHub
Open a pull request here that goes to GitHubOpen a pull request that goes to GitHub
See and run the checks of GitHubChecks from GitHub
Merge, and close the issues that a pull request fixesMerge on a synced repository
Fix a sync warning, or a paused syncFix GitHub sync problems

Open an issue that goes to GitHub

You open an issue here, and you want people on GitHub to see it too, with the same number.

  1. Connect GitHub for sync. See Connect GitHub.
  2. Open a public issue here: on the web, with src issue create, over REST or over MCP.

The issue opens on GitHub first, with your GitHub token. Then it is written here with the GitHub number. So #42 is the same issue on both sides.

On the web, you must be online to open an issue on a synced repository. The page does not keep a new issue to send later.

When your issue stays here

These issues stay here only, and never go to GitHub:

  • Private issues.
  • Issues from agents, CI jobs and the bot.

When GitHub cannot take your issue, the cause decides what happens:

CauseWhat happens
You did not connect GitHub, GitHub refuses your token, or your GitHub account has no access to the repository on GitHubThe issue is created here only, with a notice that says why.
GitHub's rate limit is used up, or GitHub has an errorNothing is created. Try again in a few minutes.
GitHub refuses the title or the bodyNothing is created. You see the reason from GitHub.

The notice shows in three places:

  • Web: a message "Your issue is on TanStack Source only", with the reason.
  • REST and MCP: the notice field of the answer. It is null when the issue went to GitHub.
  • src issue create: a line on stderr, after the URL of the issue.

An issue that stays here does not go to GitHub later. To get the next issue on GitHub, fix the cause in the notice, for example connect GitHub again.

Issues held for screening

An issue from a person without write access waits for screening first. It gets the next number here.

  • When the issue passes screening, or a maintainer approves it, it opens on GitHub with its author's GitHub token. It keeps its number here, and its page shows the GitHub number, for example "(GitHub #57)".
  • A rejected issue never goes to GitHub.
  • If the author did not connect GitHub, or GitHub cannot take the issue, it stays here only.

How sync stays current

The token of the sync owner creates a webhook on GitHub, and reads GitHub for the changes that a webhook missed. A catch-up runs every 5 minutes, so a missed webhook costs at most a few minutes.

Turn sync off

Turn off Sync with in the settings, or run src github-sync disable. The webhook on GitHub is deleted, and new items stay here only. Everything here stays. When you turn sync on again, it goes on from where it stopped.