Skip to content

docs: a PR merged from a fork needs \translate-resync (#415) - #424

Merged
mmcky merged 2 commits into
mainfrom
docs/fork-pr-resync
Nov 5, 2026
Merged

mmcky merged 2 commits into
mainfrom
docs/fork-pr-resync

Conversation

@mmcky

@mmcky mmcky commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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 (a pull_request_target trigger, 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_required or run and fail, and approving a held run cannot help. Nothing reports either outcome. A \translate-resync comment runs as an issue_comment event 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 forward is the route instead.

Changes

File Change
src/cli/commands/setup.ts Five comment lines beside the if: in the sync workflow translate setup writes. The generated YAML still parses, and the backslash renders as \translate-resync
docs/user/action-reference.md A paragraph after the \translate-resync description
docs/user/faq.md A new entry, Why didn't a PR merged from a fork sync?
README.md One clause in the \translate-resync sentence
CHANGELOG.md A Documentation entry under [Unreleased]

dist-action/ is unchanged: setup.ts is CLI-only, and npm run build leaves the bundle as it was. The setup and workflow-template tests pass (129), and lint, format:check and check-dev-refs are 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

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>
Copilot AI balanced review requested due to automatic review settings November 4, 2026 07:04
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>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 setup about 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.md under [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

mmcky added a commit that referenced this pull request Nov 5, 2026
…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>
@mmcky
mmcky merged commit 1c0b20b into main Nov 5, 2026
1 check passed
@mmcky
mmcky deleted the docs/fork-pr-resync branch November 5, 2026 04:57
mmcky added a commit that referenced this pull request Nov 5, 2026
…#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>
quantecon-services pushed a commit that referenced this pull request Nov 11, 2026
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
@quantecon-services quantecon-services mentioned this pull request Nov 11, 2026
6 tasks
mmcky pushed a commit that referenced this pull request Nov 11, 2026
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>
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