Skip to content

ci: add rebase-translations workflow#108

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

ci: add rebase-translations workflow#108
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
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 14, 2026

Deploy Preview for majestic-griffin-10b166 ready!

Name Link
🔨 Latest commit 20c41c1
🔍 Latest deploy log https://app.netlify.com/projects/majestic-griffin-10b166/deploys/69dde058cfce6a00085574ad
😎 Deploy Preview https://deploy-preview-108--majestic-griffin-10b166.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.

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 remaining open translation-sync-* PRs after one such PR is merged, reducing conflict rates in the translation sync process.

Changes:

  • Introduces a new pull_request.closed-triggered workflow gated to merged translation-sync-* PRs.
  • Runs quantecon/action-translation in mode: rebase to regenerate/rebase sibling translation PRs.
  • Adds a concurrency group to prevent overlapping rebases.

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

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

github-actions bot commented Apr 14, 2026

@github-actions github-actions bot temporarily deployed to pull request April 14, 2026 06:26 Inactive
mmcky and others added 2 commits April 14, 2026 16:31
@github-actions github-actions bot temporarily deployed to pull request April 14, 2026 06:41 Inactive
@mmcky mmcky merged commit 4d9ab6e into main Apr 14, 2026
7 checks passed
@mmcky mmcky deleted the add-rebase-workflow branch April 14, 2026 06:52
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