Skip to content

chore(ci): add weekly upstream sync workflow - #7

Merged
teoboetti merged 1 commit into
masterfrom
chore/sync-upstream-workflow
Oct 6, 2026
Merged

teoboetti merged 1 commit into
masterfrom
chore/sync-upstream-workflow

Conversation

@teoboetti

Copy link
Copy Markdown
Owner

Adds .github/workflows/sync-upstream.yml, which runs every Monday at 06:00 UTC and can also be started by hand from the Actions tab:

  • If microsoft/vscode-react-native master has commits this fork doesn't, it merges them into an upstream-sync branch and opens a PR into master.
  • If the merge has conflicts, Claude Code (Sonnet, max 40 turns, 30 min timeout) resolves them, runs lint and build, and commits. The PR lists the files it resolved.
  • If an upstream-sync PR is already open, the run is skipped. If conflict markers are left over, the run fails without opening a PR.

Required secrets

  • SYNC_PAT: fine-grained token for this repo with Contents, Pull requests and Workflows set to read/write
  • CLAUDE_CODE_OAUTH_TOKEN: from claude setup-token

Merge sync PRs with Create a merge commit. Squash or rebase would make the next run merge the same upstream commits again.

@teoboetti
teoboetti merged commit b4b8282 into master Oct 6, 2026
1 check passed
@teoboetti
teoboetti deleted the chore/sync-upstream-workflow branch October 6, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant