fix(sync): default scheduled runs to latest tag + drop upstream workflow edits#52
Merged
Merged
Conversation
…kflow edits Scheduled sync runs were defaulting to mode=next (crawling one upstream tag per day), leaving the fork perpetually behind despite CLAUDE.md documenting mode=latest as the daily default. Default an empty mode to latest so scheduled runs jump to upstream's tip; manual dispatch still honors its choice input (default next). Also drop upstream changes under .github/workflows/ during the merge: the default GITHUB_TOKEN lacks the workflows permission, so a merge that touched .github/workflows/tests.yml (e.g. the v0.51.294 jump) was rejected on push. The fork runs its own CI, so reset that directory to master's version, which also clears any conflict there. This implements the behavior CLAUDE.md already documents.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the two sync-upstream problems behind the recurring failures.
1. Daily runs now sync to latest, not
nextScheduled runs sent no
modeinput, soMODE="${MODE:-next}"made them crawl one tag per day — leaving the fork perpetually behind (it was at v0.51.232 while upstream was at v0.51.295, ~60 tags). CLAUDE.md documentslatestas the daily default, but the workflow never implemented it. Emptymodenow defaults tolatest; manual dispatch still honors itsnext/latestchoice.2. Sync no longer fails on upstream workflow edits
The last manual run failed at push with:
The default
GITHUB_TOKEN(onlycontents+pull-requestshere) cannot push workflow-file changes. CLAUDE.md claims the workflow "already drops them automatically" — but no such step existed. After the merge, the workflow now resets.github/workflows/tomaster's version (the fork runs its own CI), which also clears any conflict there, then recomputes remaining conflicts and finalizes the merge commit.Also updated the header comment to match the real behavior.
Generated by Claude Code