Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(ci): fork PRs now resolve in workflow_run PR lookups #26779

Mergedjuliusmarmingemerged 2 commits intomain fromrefs/pull/26779/headmerged by juliusmarminge View on GitHub

juliusmarmingecommented

Follow-up to https://git.cafe/pingdotgg/t3code/pulls/26755. Fork PRs such as https://git.cafe/pingdotgg/t3code/pulls/26734 still never got the 📱 Native Change label. The label workflow found the PR with listPullRequestsAssociatedWithCommit, and for a fork commit that returns nothing. Every fork run logged Expected one open PR at <sha>; found 0. Skipping.

Both workflows that resolve a PR from a workflow_run now list open PRs with pulls.list filtered by head: <owner>:<branch>, which works for forks and same-repo PRs alike. The head SHA, ref, and repository checks are unchanged.

  • mobile-fingerprint-label.yml: the Native Change label.
  • desktop-macos-preview-publish.yml: preview:mac builds, which used the same lookup and so could never publish a fork PR's preview.

Verified against real run data: the payload of https://git.cafe/pingdotgg/t3code/pulls/26734's latest check run resolves to https://git.cafe/pingdotgg/t3code/pulls/26734 at its current head, and a same-repo PR (https://git.cafe/pingdotgg/t3code/pulls/26777) still resolves. No recent publish run for a fork preview was found to confirm the desktop half directly.

Model: Claude Opus 5.5 in Claude Code (T3 Code).

🤖 Generated with Claude Code

    1. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      A prior Macroscope approval was dismissed. Re-evaluating faad4a5…

    2. juliusmarminge changed the title

    3. juliusmarminge merged this783581d

    4. juliusmarminge closed this

Sign in to join this conversation.