Skip to content

Add monthly upstream Zed sync workflow - #9

Open
crichalchemist wants to merge 3 commits into
mainfrom
feature/cer-1600-automate-monthly-upstream-zed-sync-via-github-actions
Open

Add monthly upstream Zed sync workflow#9
crichalchemist wants to merge 3 commits into
mainfrom
feature/cer-1600-automate-monthly-upstream-zed-sync-via-github-actions

Conversation

@crichalchemist

Copy link
Copy Markdown

Adds .github/workflows/sync_upstream.yml — a monthly (1st of month, 06:17 UTC) and manually-dispatchable job that merges zed-industries/zed@main into a stable sync/upstream branch and opens/updates a single PR against main. It never pushes to main and never auto-merges.

Because the fork carries divergent commits (new crates dream_inspector/reverie_agent, Cerebral themes), the sync must be a merge → PR — gh repo sync and off-the-shelf fork-sync actions don't apply.

Deterministic conflicts are auto-resolved (community/duplicate-bot workflows we deleted stay deleted; Cargo.lock taken from upstream). Real conflicts are committed with markers and the PR is labeled needs-conflict-resolution.

Optional SYNC_PAT secret lets the sync PR trigger CI; without it the job still runs via GITHUB_TOKEN (but the PR won't fire run_tests.yml).

Tracked in CER-1600.

Release Notes:

  • N/A

Adds .github/workflows/sync_upstream.yml, a monthly (1st, 06:17 UTC) and
manually-dispatchable job that merges zed-industries/zed@main into a stable
sync/upstream branch and opens or updates a single PR against main. It never
pushes to main and never auto-merges.

Deterministic conflicts are auto-resolved (community/duplicate-bot workflows
we deleted stay deleted; Cargo.lock is taken from upstream); real conflicts are
committed with markers and the PR is labeled needs-conflict-resolution.

An optional SYNC_PAT secret lets the sync PR trigger CI; without it the job
still runs via GITHUB_TOKEN.

Tracked in CER-1600.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 12, 2026 23:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

crichalchemist and others added 2 commits July 12, 2026 18:37
gh pr create/list/edit default the base repo to the fork's parent
(zed-industries/zed), so the sync PR lookup and creation would target the
wrong repo in Actions. Set GH_REPO to github.repository to pin all gh
commands to this fork.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Repoints the monthly sync to merge the newest stable zed-industries/zed
release tag (newest v* tag excluding pre/rc/nightly) instead of upstream/main,
for a more stable and reproducible base.

Also corrects the SYNC_PAT note: the fork's test workflows (run_tests.yml etc.)
are gated to the zed-industries org and are skipped on this fork, so a sync PR
gets no CI today regardless of token. SYNC_PAT becomes useful once fork CI is
enabled (tracked separately).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

2 participants