Skip to content

Add translation review and rebase workflows (Phase 0 Track B)#100

Merged
mmcky merged 1 commit into
mainfrom
phase0/translation-workflows
Jul 18, 2026
Merged

Add translation review and rebase workflows (Phase 0 Track B)#100
mmcky merged 1 commit into
mainfrom
phase0/translation-workflows

Conversation

@mmcky

@mmcky mmcky commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Part of QuantEcon/lecture-python.myst#947. Adds review-translations.yml and rebase-translations.yml, copied from lecture-intro.zh-cn's Track A wiring (fr-pattern review guards, v0.17.0 review dedupe, job-level concurrency) with source-repo pointed at QuantEcon/lecture-python.myst.

Blocked on a secret: the ANTHROPIC_API_KEY org secret is not yet visible to this repo (QUANTECON_SERVICES_PAT is). Extending it needs org admin — until then the review/rebase jobs will fail at the API-key step.

Known limitation: the review workflow reviews resync PRs only once a release containing action-translation#108 ships and @v0 moves — the current v0.17.0 @v0 still lacks #104's metadata fallback, so this wave's resync PRs get their review from the local sweep instead (see the wave report).

🤖 Generated with Claude Code

Copied from lecture-intro.zh-cn (Track A wiring, includes the fr-pattern
review guards and v0.17.0 review dedupe) with source-repo pointed at
QuantEcon/lecture-python.myst.

Requires the ANTHROPIC_API_KEY org secret to be extended to this repo.
Part of Phase 0 Track B, QuantEcon/lecture-python.myst#947.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 18, 2026 06:49
@netlify

netlify Bot commented Jul 18, 2026

Copy link
Copy Markdown

Deploy Preview for astonishing-narwhal-a8fc64 ready!

Name Link
🔨 Latest commit 7a176b6
🔍 Latest deploy log https://app.netlify.com/projects/astonishing-narwhal-a8fc64/deploys/6a5b2206c79fba0008569682
😎 Deploy Preview https://deploy-preview-100--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

Adds GitHub Actions workflows to support automated translation maintenance in this translated repository: one workflow posts an AI-assisted quality review on translation PRs, and another automatically rebases remaining translation-sync PRs after one is merged.

Changes:

  • Add review-translations.yml to run QuantEcon/action-translation in review mode for PRs labeled action-translation, with per-PR concurrency and deduping permissions.
  • Add rebase-translations.yml to run QuantEcon/action-translation in rebase mode when a translation-sync-* PR is merged, with global concurrency to prevent overlapping rebases.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/review-translations.yml Introduces a PR-triggered translation review job using QuantEcon/action-translation@v0, gated by the action-translation label and job-level concurrency.
.github/workflows/rebase-translations.yml Introduces an auto-rebase job for translation-sync PRs after merge to reduce conflicts across concurrently-open sync PRs.

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

Comment on lines +18 to +20
if: >
contains(github.event.pull_request.labels.*.name, 'action-translation') &&
(github.event.action != 'labeled' || github.event.label.name == 'action-translation')
Comment on lines +21 to +23
if: >
github.event.pull_request.merged == true &&
startsWith(github.event.pull_request.head.ref, 'translation-sync-')
@github-actions

Copy link
Copy Markdown

@github-actions
github-actions Bot temporarily deployed to pull request July 18, 2026 10:05 Inactive
@mmcky
mmcky merged commit 9866dbc into main Jul 18, 2026
8 of 9 checks passed
@mmcky
mmcky deleted the phase0/translation-workflows branch July 18, 2026 10:39
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