Skip to content

Translate a queue issue at the PR's merge ref - #29

Merged
iHiD merged 1 commit into
mainfrom
translate-at-merge-ref
Oct 7, 2026
Merged

iHiD merged 1 commit into
mainfrom
translate-at-merge-ref

Conversation

@iHiD

@iHiD iHiD commented Oct 7, 2026

Copy link
Copy Markdown
Member

The completeness check on a source PR reads refs/pull/<n>/merge, but the queue translated the PR head. When main edits a file the PR also edits, the merged file is a blob neither commit holds, so the check stays red and re-runs of the issue report nothing to do. exercism/swift#948 hit this: #933 changed exercises/concept/lasagna-master/.docs/introduction.md on main, and the check wants blob 4256a5cf, which only the merge ref has.

The queue now fetches the merge ref and translates at it when its second parent is the issue's sha, falling back to the head and its merge base when GitHub has no merge ref. issue-failures.mjs reads English at the ref the run used.

node scripts/test.mjs: 59 passed. A dry run of the new scope over swift#948 picks up the lasagna-master introduction.

🤖 Generated with Claude Code

The completeness check on a source PR reads refs/pull/<n>/merge and
requires every file that differs from its first parent. The queue
translated the PR's head instead. When main edits a file the PR also
edits, the merged file is a third text that neither commit holds, so
the check stays red and every re-run of the issue finds nothing to do.
exercism/swift#948 hit this with lasagna-master's introduction after
#933 landed on main.

source-checkout.mjs now fetches the merge ref with the PR head, and
the issue scope compares it with its first parent when its second
parent is the issue's sha. Without a usable merge ref (a conflicting
PR), the scope falls back to the head and its merge base as before.
The run records the ref it used, and issue-failures.mjs reads English
there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@iHiD
iHiD merged commit b732a36 into main Oct 7, 2026
@iHiD
iHiD deleted the translate-at-merge-ref branch October 7, 2026 16:22
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.

1 participant