Repository navigation
Skip the PR gate's linked-issue check for branches in this repository - #6197
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
The linked-issue check from #6189 exempts authors whose
author_associationisOWNERorMEMBER. For an org member with private membership,pull_request_targetreportsCOLLABORATOR. So maintainer pull requests from branches in this repository were closed withneeds-issue. #6195 was closed this way: run 40039656279 loggedPR_ASSOCIATION: COLLABORATORandHEAD_REPO: get-bb/bb. Details in #6196.What changed
.github/workflows/pr-gate.ymlnow runs the linked-issue check only when the head repository is not this repository.needs-issuesame-repo pull requests: an edit now reopens them, because theeditedpath uses the same check. That covers Keep the timeline attached when a navigation, resize or restore lands at the end #6195.CONTRIBUTING.mdalready describes the rule as "pull requests from outside the bb team", so it needs no change.How you verified
PR_ASSOCIATION: COLLABORATORandHEAD_REPO: get-bb/bb.gh api orgs/get-bb/memberships/ymichaelreports an active admin, andpublic_membersreturns 404.issue_missingguard.Fixes #6196
🤖 Generated with Claude Code