Fix pull request lookup for fork branches - #1150
Merged
ymichael merged 3 commits intoAug 7, 2026
Merged
Conversation
ymichael
deleted the
bb/diagnose-localhost-thread-url-issue-thr_djyeg2py3p
branch
August 7, 2026 18:28
amadad
pushed a commit
to amadad/bb
that referenced
this pull request
Aug 14, 2026
## Summary - let GitHub CLI resolve pull requests from the checked-out branch and its configured upstream - fix prompt-banner PR detection for branches tracking contributor forks - apply the same tracking-aware resolution to ready, draft, and merge actions - preserve detached-head and lookup-failure behavior ## Reproduction PR get-bb#1076 checked out a branch that tracked Diffuzmetall/bb. Passing its bare branch name to gh pr view searched the base repository and returned no pull request. Running gh pr view from the worktree without a positional target followed the fork upstream and found the PR. ## Validation - 185 host-workspace tests passed - host-workspace and host-daemon typechecks passed - verified the current-branch helper resolves same-repository and fork-backed pull requests and still reports no PR for main ## Commands - pnpm exec turbo run test --filter=@bb/host-workspace --force - pnpm exec turbo run typecheck --filter=@bb/host-workspace --filter=@bb/host-daemon
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.
Summary
Reproduction
PR #1076 checked out a branch that tracked Diffuzmetall/bb. Passing its bare branch name to gh pr view searched the base repository and returned no pull request. Running gh pr view from the worktree without a positional target followed the fork upstream and found the PR.
Validation
Commands