Skip to content

ci(fork-release): Claude resolves upstream merge conflicts for the build - #5

Merged
collissimo merged 3 commits into
collin/mainfrom
fork/ai-merge-resolve
Oct 21, 2026
Merged

collissimo merged 3 commits into
collin/mainfrom
fork/ai-merge-resolve

Conversation

@collissimo

Copy link
Copy Markdown
Owner

The hourly Fork release failed whenever upstream no longer merged cleanly into collin/main (latest: KeybindingsSettings.logic.ts, run 39649857765).

  • fork/resolve-conflicts.sh: Claude Code (Opus, max $5/run) resolves only the conflicted files; the script rejects edits outside them and leftover markers, then commits.
  • Result cached per fork/upstream pair (actions/cache): hourly retries never call Claude again; a failed resolution fails fast until a new commit or force.
  • prepare bundles the merge commit; typecheck and build check out exactly that commit instead of re-merging. Typecheck still gates publish.
  • Build-only, like before: collin/main is not touched (GITHUB_TOKEN can't push upstream workflow changes); the daily T3 task still syncs it via PR.
  • Needs repo secret ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN; without one, a conflict fails as before.

Proof: reproduced the failing pair (fork 9c252cb + upstream 680152e) locally; the script resolved it correctly (kept fork dictate labels + upstream's renamed queue label). Bundle fetch tested incl. Windows paths.

🤖 Generated with Claude Code

The hourly fork release failed whenever upstream no longer merged cleanly
into collin/main. Now fork/resolve-conflicts.sh has Claude Code resolve the
conflicted files (and nothing else), the result is cached per fork/upstream
pair so retries cost nothing, and prepare hands the exact merge commit to
the typecheck and build jobs as a bundle instead of each re-merging.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:L labels Oct 21, 2026
collissimo and others added 2 commits October 21, 2026 21:50
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…solution

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@collissimo
collissimo merged commit 3a4fa05 into collin/main Oct 21, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant