From c116740fc909a689e6a40aebe74abed1fba3e1ae Mon Sep 17 00:00:00 2001 From: Michael Yong Date: Fri, 23 Oct 2026 16:32:29 -0700 Subject: [PATCH] Skip the PR gate's linked-issue check for branches in this repository The issue requirement from #6189 exempted only OWNER and MEMBER associations. pull_request_target reports an org member whose membership is private as COLLABORATOR, so maintainer pull requests were closed as needs-issue. Only accounts with write access can push branches here, so a head repository equal to this one now skips the check. Fixes #6196 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/pr-gate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-gate.yml b/.github/workflows/pr-gate.yml index 72177ebb8c7..fbb823128d3 100644 --- a/.github/workflows/pr-gate.yml +++ b/.github/workflows/pr-gate.yml @@ -64,7 +64,7 @@ jobs: edits_off="yes" fi issue_missing="" - if [ "$EVENT_ACTION" != "synchronize" ] && [ "$PR_AUTHOR_TYPE" != "Bot" ] && [ "$PR_ASSOCIATION" != "OWNER" ] && [ "$PR_ASSOCIATION" != "MEMBER" ]; then + if [ "$EVENT_ACTION" != "synchronize" ] && [ "$PR_AUTHOR_TYPE" != "Bot" ] && [ "$PR_ASSOCIATION" != "OWNER" ] && [ "$PR_ASSOCIATION" != "MEMBER" ] && [ "$HEAD_REPO" != "$GITHUB_REPOSITORY" ]; then issue_missing="yes" attempts=1 if [ "$EVENT_ACTION" = "edited" ]; then