Skip to content

ci: add rebase-translations workflow#56

Merged
mmcky merged 3 commits intomainfrom
add-rebase-workflow
Apr 14, 2026
Merged

ci: add rebase-translations workflow#56
mmcky merged 3 commits intomainfrom
add-rebase-workflow

Conversation

@mmcky
Copy link
Copy Markdown
Contributor

@mmcky mmcky commented Apr 14, 2026

Add rebase-translations workflow

Adds a new workflow that automatically rebases open translation-sync-* PRs when a sibling translation PR is merged.

Why

When multiple upstream PRs modify the same file, the first translation PR to merge makes the others conflict (full-file replacement). This caused a 62% merge conflict rate (issue QuantEcon/action-translation#63).

How it works

When a translation-sync-* PR is merged:

  1. Finds sibling translation PRs with overlapping files
  2. Re-runs the translation pipeline against updated main
  3. Reuses cached translations for unchanged sections (zero Claude API calls in the common case)
  4. Force-pushes the rebased result

What's added

  • .github/workflows/rebase-translations.yml — triggered on pull_request.closed for translation-sync branches
  • Uses quantecon/action-translation@v0.15 with mode: rebase
  • Includes concurrency group to prevent overlapping rebases

See action-translation v0.15.0 release for full details.

Copilot AI review requested due to automatic review settings April 14, 2026 06:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a GitHub Actions workflow to automatically rebase other open translation-sync-* PRs after a translation-sync-* PR is merged, reducing downstream merge conflicts in the translated repo.

Changes:

  • Introduces a pull_request.closed workflow that runs only when a translation-sync-* PR is merged.
  • Runs action-translation in mode: rebase with a repository-wide concurrency guard.

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

mmcky and others added 2 commits April 14, 2026 16:31
@mmcky mmcky merged commit 6f36a65 into main Apr 14, 2026
2 checks passed
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