Skip to content

Skip the PR gate's linked-issue check for branches in this repository - #6197

Merged
ymichael merged 1 commit into
mainfrom
bb/pr-gate-maintainer-branches-thr_nbqpibci7w
Oct 23, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/pr-gate-maintainer-branches-thr_nbqpibci7w

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The linked-issue check from #6189 exempts authors whose author_association is OWNER or MEMBER. For an org member with private membership, pull_request_target reports COLLABORATOR. So maintainer pull requests from branches in this repository were closed with needs-issue. #6195 was closed this way: run 40039656279 logged PR_ASSOCIATION: COLLABORATOR and HEAD_REPO: get-bb/bb. Details in #6196.

What changed

.github/workflows/pr-gate.yml now runs the linked-issue check only when the head repository is not this repository.

  • Same-repo pull requests: only accounts with write access can push branches here, so these are exempt whatever the author's membership visibility.
  • Fork pull requests: handled exactly as before. Approval, maintainer edits and the issue requirement are unchanged.
  • Closed needs-issue same-repo pull requests: an edit now reopens them, because the edited path uses the same check. That covers Keep the timeline attached when a navigation, resize or restore lands at the end #6195.

CONTRIBUTING.md already describes the rule as "pull requests from outside the bb team", so it needs no change.

How you verified

Fixes #6196

AGENT GENERATED

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
@ymichael
ymichael merged commit 5f3ceb1 into main Oct 23, 2026
49 checks passed
@ymichael
ymichael deleted the bb/pr-gate-maintainer-branches-thr_nbqpibci7w branch October 23, 2026 23:34
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.

PR Gate closes maintainer pull requests when org membership is private

1 participant