Move from GitHub / Import
Switch from GitHub
Your team works on GitHub today: repositories, Actions, secrets, branch protection, and maybe coding agents that use your own token. You want to move to TanStack Source one step at a time, without breaking the way you work.
6 min read
Do the steps in this order. Each step works on its own, so you can stop after any step and continue later.
Important
Some things work in another way here. For example, git goes over HTTPS only. Read What works in another way before you start.
1. Import the repository
Pick the import that fits what you move:
| You move | Use |
|---|---|
| One repository | Import from GitHub. It copies the git history, and every issue and pull request with their numbers. You connect GitHub for it, and 2,000 items take a few minutes. |
| A GitHub organization that you own | Import a GitHub organization. It brings the name, the profile and the image of the organization, and the repositories that you pick. |
| Your own repositories, each organization that you own, your profile and your stars | Import everything from GitHub, in one run. |
Tip
If outside people keep using GitHub, sync with GitHub after the import. New issues, pull requests and comments on GitHub then come here, and your team's replies go to GitHub.
2. Move your clones
Install src and log in. Then, in each clone:
git remote set-url origin https://source.tanstack.com/@<owner>/<repo>.git
alias gh=src
Your git and gh habits stay the same. To give your coding agents the same habits, paste the prompt of Set up your coding agent into them, or run src agent setup.
Note
The @ is optional in links and in git remotes. https://source.tanstack.com/tanstack/source and https://source.tanstack.com/@tanstack/source open the same repository, and deeper pages such as issues work in both forms. A remote of https://source.tanstack.com/<owner>/<repo>.git works the same as the remote above. If an owner has the name of a site page, such as docs, the site page opens, so use the @ form for that owner.
Tip
A GitHub link works here too: change github.com to source.tanstack.com and keep the rest. https://source.tanstack.com/<owner>/<repo>/pull/12/files opens the Files tab of pull request #12, /actions opens the CI runs, /blame/main/<path> opens the file, and /orgs/<org> opens the organization. A GitHub page that Source does not have, such as /releases or /wiki, opens the repository's home page. If the repository here has another owner or name, the link still opens it when it is public and its admin verified it as the GitHub repository.
3. Move CI
Convert your workflows:
src ci convert
src ci convert converts each workflow in .github/workflows/. It marks each part that it cannot convert with // TODO(convert). Move from GitHub Actions walks you through the TODOs, the secrets and the first run.
Important
GitHub Actions do not run here. This is also true for the workflows of an imported profile repository. The import copies .github/workflows/ as files only, and CI runs the workflows in .source/workflows/.
4. Protect the default branch
Add a branch rule that requires a pull request and your checks before a merge. See Branch rules.
5. Bring the team and the agents
- Bring your team: make the organization and invite people. If you imported the organization, its members who had signed in here with GitHub got an invitation already.
- Connect your coding agent: give each agent a session in place of your token.
- Connect over MCP or use the REST API for your tools and bots.
6. Move your pull request agents to the factory
On GitHub, an agent that reviews pull requests usually runs in GitHub Actions. This has two problems:
- The workflow and the prompt are files in the repository. Anyone can read them, and a pull request can change them.
- A pull request from a fork gets no secrets, so the agent cannot call its model there.
The software factory runs its agents on the forge:
- The settings and the prompts are on the forge. A custom agent file comes from the vault, or from the default branch only, never from a pull request.
- The model and its key stay on the forge. The sandbox of the agent gets no model key and no forge token.
- A pull request from a fork gets the same audit and review as any other.
You do not need to convert your agent workflows. Every agent is off by default.
- Turn on the agents that you want.
- Read the Factory panel on your next pull request.
Done
Your code, issues, pull requests, CI and team are on TanStack Source. Each agent works with its own token, and no merge reaches the default branch without a person.
The same things, by their names here
| On GitHub | On TanStack Source |
|---|---|
gh | src, with the same commands and flags. See Install and set up the CLI. |
The instructions that teach your agent gh | The TanStack Source skill and instructions, which src agent setup installs. See Set up your coding agent. |
GitHub Actions in .github/workflows/*.yml | TypeScript workflows in .source/workflows/*.ts. src ci convert writes them. |
| Actions secrets | CI secrets, with one value for each CI environment |
| Actions variables | CI variables. See CI variables. |
A .env file that you send around | The vault. See Keep private files out of git. |
| A bucket or CDN for the images and videos of your site | Assets, next to the repository. See Assets. |
gh issue artifact | src issue artifact, with the same flags, and src pr artifact for a pull request. See Artifacts. |
| Branch protection | Branch rules |
| An agent with your token | An agent session, with its own token for one repository |
| A review or triage agent in GitHub Actions | The software factory, which runs its agents on the forge |
Organizations, teams, roles, issues, pull requests, reviews and labels work as they do on GitHub. So do these:
- Draft pull requests, review requests, branch updates and reverts. See Drafts, reviews and updates of pull requests.
- Locked, pinned, transferred and deleted issues. See Lock, pin, move and delete issues.
- Renamed, archived and deleted repositories, and autolinks. See Rename, archive or delete a repository.
What works in another way
The import:
- It is a copy. Issues and pull requests that are opened on GitHub after the import starts come over only when you sync with GitHub.
- People from GitHub show as their account here when they sign in to Source with GitHub, or connected GitHub for sync. The others show as their GitHub login and GitHub avatar, with a link to their GitHub profile.
- Reactions are copied. A reaction from GitHub shows as the person, by the same rule, and notifies no one. See React to issues, pull requests and comments.
- Not copied: milestones, projects and the artifacts of issues. A draft pull request on GitHub stays a draft here.
Git and CI:
- Git goes over HTTPS only. There is no SSH.
- Large files: a file can be up to 128 MiB. If both branches of a pull request change a file over 8 MiB, the forge shows a conflict. Then you merge that file on your machine.
- Not in CI yet: releases, service containers such as Postgres, and the GitHub GraphQL API. Keep those workflows on GitHub for now.