Repository navigation
docs: a PR merged from a fork needs \translate-resync (#415) - #424
Conversation
GitHub gives a workflow run that a fork's pull request triggers no secrets, so a merged fork PR's sync runs are held for approval or fail, and approving a held run cannot help. Nothing reports either outcome. Say so where the trigger is set up and documented: a comment beside the trigger in the sync workflow `translate setup` writes, a paragraph in the action reference, an FAQ entry, and a clause in the README. This is suggestion 1 of #415; the rest of that issue stays open. Refs #415, #234 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A \translate-resync regenerates from the PR's merge-time snapshot, so the line now says to comment it as soon as the PR has merged, and to use translate forward once a later merge has changed the same files (the #276 precondition). Refs #415, #276 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Note
Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.
🟢 Approval recommended
Only documentation and generated workflow commentary were updated to clarify an expected GitHub Actions fork/secret limitation and the existing \translate-resync recovery step, with no outstanding issues beyond a minor auto-linking nit.
No open issues 🎉
What changed in this PR
This pull request updates the generated translate setup workflow commentary and user-facing documentation to clarify a GitHub Actions limitation: PRs merged from forks won’t sync automatically because required secrets aren’t available, so maintainers must use \translate-resync after merge to trigger a secrets-bearing run.
Changes:
- Add explanatory comments to the scaffolded sync workflow written by
translate setupabout fork-merged PRs requiring\translate-resync. - Document the fork-merge sync failure mode and recovery steps in the Action Reference, FAQ, and README.
- Record the documentation update in
CHANGELOG.mdunder[Unreleased].
This pull request is ready to be approved. (Nit: consider changing action-translation#415 to a fully-qualified QuantEcon/action-translation#415 in the generated workflow comment so it reliably auto-links.)
| File | Summary |
|---|---|
src/cli/commands/setup.ts |
Adds comments alongside the generated workflow if: condition clarifying fork-merged PR behavior and pointing users to \translate-resync (nit: prefer fully-qualified issue reference for auto-linking). |
README.md |
Clarifies the \translate-resync guidance to explicitly include the fork-merged PR case. |
docs/user/faq.md |
Adds a new FAQ entry explaining why fork-merged PRs don’t sync and how to recover using \translate-resync. |
docs/user/action-reference.md |
Adds a paragraph reinforcing that fork-merged PRs require \translate-resync and describing expected symptoms/behavior. |
CHANGELOG.md |
Adds an [Unreleased] documentation entry capturing the new guidance. |
Review effort: Balanced
…ne-step rebase (#425) * dev: log + STATE.md — zh-cn triage, the whole-document head, #280's one-step rebase Session log 2026-11-04-whole-document-and-rebase and the STATE.md entries it changes: the zh-cn failure triage (#418, #420), the whole-document PRs (#421, #422), the rebase PR (#423) and the #415 doc line (#424), all open; ml#58 round 6 reviewed but not applied; #324/#325 recorded as having no branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * dev: log — ml#58's plural was caught by the lint, not missed The 2026-11-04 entry said series-കളുടെ got past ml_metrics, which pointed at a lint gap. It did not: the plural lint flags it at v0.29.5 and at main, and the seeding run recorded it (checks.jsonl, plural: 1). The PR's hand-written verification line said there were none; that process gap is now QuantEcon/project-translation#83. The lint gap the page does show, the lowercase opener economics-ലും, is part 1 of #301. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * dev: log + STATE.md — #301's lint change opened as #426 The 2026-11-04 entry records #301's in-place rewrite and the PR that makes part 1's change (#426), and the merge-order note now counts six PRs. STATE.md lists #426 among the ml calibration's open items, to merge before round 7 is seeded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * dev: log + STATE.md — #426 merged; #419 and #423 now conflict #426 merged on 2026-11-04 as 9526671 and #301 closed with it. The log entry and STATE.md's ml list now say so, and the merge-order note records that #419 and #423 conflict with main in CHANGELOG.md as a result. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * dev: log — #419 and #423 rebased onto #426 Both were rebased onto main after #426 merged. Only their CHANGELOG.md lines moved: the rest of each patch is byte-identical, the build shows no dist-action/ drift, and the full suite passes on each. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * dev: log + STATE.md — #419 merged; Copilot's wording note on #425 #419 merged on 2026-11-05 as 2ab18cd, and #418 was closed by it. The log and STATE.md now say so, and the merge order starts at #421: since #419's merge, #421 and #423 conflict with main, and #422 gets CI only once its base is main. The log's test-count line is now a sentence that says the suite passes (Copilot, on #425). STATE.md now says #324 sets the apostrophe "to" U+2019, not "as" U+2019, calls the ml editor "the editor" or "they" in place of "his", and records that ml#14 merged on 2026-10-06. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…#429) Session log 2026-11-05-redraw-draw8-merges: the French redraw at #421's head (18 of 24 delivered; v0.29.4 3 of 23), the capture of its refusals, and draw 8, which was a front matter opened with a bare fence in place of ---, not a wrapper never closed; with #421 alone it was written under a translation:-only front matter; #422 writes the source's head. Also #422's fence rule and its rebase, and the five merges of the day (#419, #421, #422, #423, #424), all unreleased. STATE.md: the zh-cn, #280, fr typography and whole-document bullets now say what merged and what is left (#203's residual, #280's closing steps); a Recently landed entry; the fr engine queue; the test count (2,228 across 81 suites at 1c0b20b). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Promotes [Unreleased] to [0.30.1] - 2026-11-11 and bumps the version. Payload: #412 (#348), #419 (#418), #421 (#363), #422 (#326, #288), #423 (#280), #424 (#415), #426 (#301), #433 (#307, #379, #381). The tag, the E2E gate, the rate check and the floating-tag move follow the merge. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HvzxXm4Soc3nkBXi55KDnL
Promotes [Unreleased] to [0.30.1] - 2026-11-11 and bumps the version. Payload: #412 (#348), #419 (#418), #421 (#363), #422 (#326, #288), #423 (#280), #424 (#415), #426 (#301), #433 (#307, #379, #381). The tag, the E2E gate, the rate check and the floating-tag move follow the merge. Claude-Session: https://claude.ai/code/session_01HvzxXm4Soc3nkBXi55KDnL Co-authored-by: Claude <noreply@anthropic.com>
Suggestion 1 of #415: say, where the sync trigger is set up and documented, that a PR merged from a fork never syncs on its own and needs
\translate-resync. The rest of #415 (apull_request_targettrigger, and detection as #234 proposes) stays open.GitHub gives a workflow run that a fork's pull request triggers no secrets, so the sync has neither the Anthropic key nor the PAT. Depending on the repository's setting for outside contributors' workflows, the runs are held as
action_requiredor run and fail, and approving a held run cannot help. Nothing reports either outcome. A\translate-resynccomment runs as anissue_commentevent in the source repository's own context, with its secrets, which is how QuantEcon/lecture-python-programming#637 was delivered on 2026-11-02.The workflow comment, the action reference and the FAQ also carry #276's precondition: a resync regenerates from the PR's merge-time snapshot, so it should be commented as soon as the PR has merged, and once a later merge has changed the same files,
translate forwardis the route instead.Changes
src/cli/commands/setup.tsif:in the sync workflowtranslate setupwrites. The generated YAML still parses, and the backslash renders as\translate-resyncdocs/user/action-reference.md\translate-resyncdescriptiondocs/user/faq.mdREADME.md\translate-resyncsentenceCHANGELOG.md[Unreleased]dist-action/is unchanged:setup.tsis CLI-only, andnpm run buildleaves the bundle as it was. The setup and workflow-template tests pass (129), and lint,format:checkandcheck-dev-refsare clean.This PR touches
CHANGELOG.md, as #419, #421, #422 and #423 do, so whichever lands later needs a trivial rebase.Refs #415, #234
🤖 Generated with Claude Code