Skip to content

fix(sync): default scheduled runs to latest tag + drop upstream workflow edits#52

Merged
Du7chManiac merged 1 commit into
masterfrom
claude/sync-upstream-failures-eFaRj
Jun 6, 2026
Merged

fix(sync): default scheduled runs to latest tag + drop upstream workflow edits#52
Du7chManiac merged 1 commit into
masterfrom
claude/sync-upstream-failures-eFaRj

Conversation

@Du7chManiac

Copy link
Copy Markdown

Fixes the two sync-upstream problems behind the recurring failures.

1. Daily runs now sync to latest, not next

Scheduled runs sent no mode input, so MODE="${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 documents latest as the daily default, but the workflow never implemented it. Empty mode now defaults to latest; manual dispatch still honors its next/latest choice.

2. Sync no longer fails on upstream workflow edits

The last manual run failed at push with:

refusing to allow a GitHub App to create or update workflow .github/workflows/tests.yml without workflows permission

The default GITHUB_TOKEN (only contents + pull-requests here) 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/ to master'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.

Companion to #51 (the actual upstream catch-up). Once this lands, scheduled runs will jump straight to upstream's tip each day.


Generated by Claude Code

…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.
@Du7chManiac Du7chManiac merged commit 9c6e7a6 into master Jun 6, 2026
3 checks passed
@Du7chManiac Du7chManiac deleted the claude/sync-upstream-failures-eFaRj branch June 7, 2026 17:15
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