Move from GitHub / Sync
Checks from GitHub
A pull request on GitHub merges on GitHub, so GitHub's checks decide if it can merge. See those checks here, approve and run them, and let merge when ready wait for them, without opening GitHub.
4 min read
This works for each pull request that is on GitHub: one from GitHub, and one opened here and on GitHub.
1. See the checks
- Open the pull request.
- On the Conversation tab, find Checks in the right column. GitHub's checks are in the On GitHub group.
- Click Details to open a check on GitHub. A check that has no page on GitHub has no link.
The group shows the check runs and the commit statuses of the head commit on GitHub.
In a terminal, src pr checks 7 lists them with the checks of TanStack Source. Each one has its link on GitHub. REST GET /api/v1/repos/:owner/:repo/check-runs?sha= and the MCP tool list_check_runs give them too.
2. Run checks
The GitHub Actions of a pull request from an outside contributor wait on GitHub until a maintainer approves them. You can approve them here, without going to GitHub.
- Open the pull request.
- Under Checks, click Run checks.
The forge starts the workflows in .source/workflows/, as on any pull request. It also acts on GitHub with your token, on the GitHub Actions runs of the newest commit:
- A run that waits for approval: approved.
- A finished run: run again.
- A queued or running run: left as it is.
The message says how many runs started here, and how many runs GitHub approved and ran again. GitHub refuses to run again a run older than 30 days, so the message also counts the runs that GitHub refused.
Note
You need permission on GitHub to approve and run workflows again (write access). Agents cannot do this: Run checks is on the web page only, and no agent approves or runs checks on GitHub.
- If you did not connect GitHub, or GitHub refuses your token, the workflows here still start. A note asks you to connect GitHub in Connected accounts.
- If the pull request has no workflows here and GitHub had nothing to approve or run again, the message says "No workflow starts for pull request".
Done
You see GitHub's checks next to the checks of TanStack Source, and merge when ready waits for them.
What waits for them
GitHub's required checks for the base branch come from its rulesets and its branch protection. Here they count as required checks:
- The merge box names each one that has not passed as
github:<name>, for example "Required check github:Test is pending." - A required check that has not reported on GitHub yet shows as pending.
- Merge when ready and the merge queue wait until they pass.
The other checks on GitHub do not block Merge. They still hold merge when ready and the merge queue while they run or after they fail, the same as a check of TanStack Source.
How they get here
- GitHub sends a webhook when a check starts or ends (
check_run,check_suiteandstatus). The sync reads the checks with the token of the sync owner. - The sync reads the checks of a commit when GitHub sent no new check webhook for it for 10 seconds. One CI run sends many webhooks, and this reads GitHub once for them. So a check result, and a merge when ready that waits for it, can show up here about 15 seconds after GitHub reports it.
- If the webhook on GitHub does not ask for these events yet, the next sync pass adds them. You do nothing.
- The catch-up every 5 minutes reads the checks that did not finish again, so a missed webhook costs at most a few minutes.
- A head commit with more than 100 checks on GitHub shows the first 100.
Fix failed checks with an agent
When the Fix failing CI step of the Keep green agent is on, it also fixes the checks that fail on GitHub. This works only for a pull request that you opened here, because its head branch is here. A pull request from GitHub gets no fix.