GitNexus/.github/scripts
Gergő Magyar 1e8bdd890a
fix(ci): look up fork prebuild PRs by head owner and branch (#3236)
* fix(ci): look up fork prebuild PRs by head owner and branch

commits/{sha}/pulls is empty for fork SHAs, so deliver-fork-prebuilds failed closed on every real fork PR. Resolve the open PR from workflow_run head owner+branch instead.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(ci): use the same fork-PR lookup in autofix publish

pr-autofix-publish had the same commits/{sha}/pulls fallback, which is empty for fork SHAs. Share the pulls?head=owner:branch verifier and always run it before sticky comments or check runs.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(ci): fail closed on ambiguous fork-head PRs

Untrusted artifact pr_number must not pick among sibling open PRs from the same fork branch. Parse paginated gh --slurp pages and require verify success before prebuild checkout/push.

Co-authored-by: Cursor <cursoragent@cursor.com>

* style(ci): prettier the fork-PR identity verifier

Root prettier --check fails on .cjs; lint-staged only formats .js.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Gergo Magyar <gergomagyar0@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 09:46:24 +01:00
..
triage redoing auto labeling using z score instead of clustering lowkey the method 2026-03-21 23:21:23 -05:00
check-tree-sitter-upgrade-readiness.py fix(zig): vendor tree-sitter-zig so npm i -g no longer warns on peers (#3180) 2026-09-05 10:35:33 +01:00
check-workflow-concurrency.py fix(docker): build and push Docker images for Release Candidates (#978) 2026-04-19 07:46:21 +01:00
npm-ci-retry.sh fix(ci): stop the review agent rejecting its own graph-backed reviews (#2731) 2026-07-28 17:13:29 +01:00
review-citations.cjs fix(ci): stop the placeholder review, verify citations, repair once (#2733) 2026-07-28 18:51:01 +01:00
review-precheck.cjs fix(ci): stop the placeholder review, verify citations, repair once (#2733) 2026-07-28 18:51:01 +01:00
test_check_tree_sitter_upgrade_readiness.py fix(zig): vendor tree-sitter-zig so npm i -g no longer warns on peers (#3180) 2026-09-05 10:35:33 +01:00
update-vendored-grammars.mjs fix(ci): align tree-sitter readiness + grammar-update workflows on a shared manifest (#858) (#2187) 2026-06-13 16:15:49 +01:00
verify-workflow-run-pr-identity.cjs fix(ci): look up fork prebuild PRs by head owner and branch (#3236) 2026-09-09 09:46:24 +01:00