Skip to content

Rebase: also match resync/* branches (action-translation v0.18.1) - #186

Merged
mmcky merged 2 commits into
mainfrom
rebase-match-resync-branches
Jul 21, 2026
Merged

Rebase: also match resync/* branches (action-translation v0.18.1)#186
mmcky merged 2 commits into
mainfrom
rebase-match-resync-branches

Conversation

@mmcky

@mmcky mmcky commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Brings this repo's rebase workflow in step with the upstream template as of action-translation v0.18.1.

Why the engine fix alone was not enough

The rebase workflow only fired for translation-sync-* branches, which the Action's sync mode creates. The CLI's translate forward --github creates resync/{stem} branches — so merging one resync PR never rebased its siblings. During a drift-recovery wave that leaves a stack of open PRs whose bases go stale with every merge, each re-enqueued by hand. Observed on the 69-PR lecture-python.zh-cn Track B wave.

That was fixed engine-side in v0.18.1 (#121, closing #115) — but the prefix turned out to be enforced in three places, and this workflow if is one of them. It gates whether the job runs at all, and it runs before the action does. So a repo can be pinned @v0, pick up the engine fix automatically, and still never rebase a resync PR, because the job never starts.

Both layers must list both prefixes. This PR is the workflow half.

Verification status

Per the harness-first policy, this is staged but should not merge until the fix is validated end-to-end on the test-translation-sync harness. The rebase path has never been exercised end-to-end, and the original defect was invisible precisely because its failure mode is silence — a job that skips looks identical to a job with nothing to do.

Part of Stage 1 follow-up; see QuantEcon/project-translation#9.

🤖 Generated with Claude Code

The rebase workflow only fired for `translation-sync-*` branches, which
the Action's sync mode creates. The CLI's `translate forward --github`
creates `resync/{stem}` branches, so merging one resync PR never
rebased its siblings — during a drift-recovery wave that leaves a stack
of open PRs whose bases go stale with every merge.

Fixed engine-side in action-translation v0.18.1, but the action-side
half is not sufficient on its own: this `if` gates whether the job runs
at all, and it runs before the action does. Both layers must list both
prefixes or the result is a job that never starts.

Brings this file in step with the upstream template as of that release.

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

netlify Bot commented Jul 21, 2026

Copy link
Copy Markdown

Deploy Preview for astonishing-narwhal-a8fc64 ready!

Name Link
🔨 Latest commit aec0443
🔍 Latest deploy log https://app.netlify.com/projects/astonishing-narwhal-a8fc64/deploys/6a5eef47c87cde00080012a9
😎 Deploy Preview https://deploy-preview-186--astonishing-narwhal-a8fc64.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

Pull request overview

Updates the translation rebase GitHub Actions workflow so it runs for both Action-created translation-sync-* branches and CLI-created resync/* branches, aligning this repo with the upstream action-translation template behavior.

Changes:

  • Expanded the workflow job if: condition to match both translation-sync-* and resync/* branch prefixes.
  • Updated workflow comments to document the two supported branch naming schemes and why both must be handled.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/rebase-translations.yml Outdated
Comment thread .github/workflows/rebase-translations.yml Outdated
@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown

@github-actions
github-actions Bot temporarily deployed to pull request July 21, 2026 01:30 Inactive
The bare 'forward --github' is not a runnable invocation — the binary is
'translate'. Caught by Copilot on lecture-python-programming.fr#15;
applied estate-wide so the copies stay in step with the upstream
template, which gets the same fix.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions
github-actions Bot temporarily deployed to pull request July 21, 2026 04:08 Inactive
@mmcky
mmcky merged commit c5c2ce1 into main Jul 21, 2026
7 checks passed
@mmcky
mmcky deleted the rebase-match-resync-branches branch July 21, 2026 04:10
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