You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PR shows green checkmark for ready to commit even though branch protection policy is not met yet (review pending) #8813
Branch protection policy states at least one review is required. There is a review requested which has not been made yet. The PR shows the green checkmark instead of the orange circle I would expect for that situation. I have two of them which exhibit this behavior: bugzilla/harmony#147 bugzilla/harmony#155
Both status "Merging is blocked: At least 1 approving review is required by reviewers with write access." at the bottom.
Extension version: 0.152.0
VS Code version: Code 1.126.0 (Universal) (7e7950df89d055b5a378379db9ee14290772148a, 2026-06-23T01:46:13Z)
OS version: Darwin x64 25.5.0
Modes:
System Info
Item
Value
CPUs
Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400)
In the "Created by me" section, the four "[Harmony]" ones are all still blocked on reviews, but have the green checkmark on the right.. The "[5.2]" and "[5.0.4]" ones that have the orange circle are also blocked on reviews (and the orange circle matches GitHub's indicator on the website for "reviews pending"). The "[5.3]" ones are actually ready to land, so the green checkmark is accurate on those.
If it matters any, I have related code base in different forks that live in different remotes (GitHub CoPilot can compare them all with each other using git commands that way), so I have three repos configured to look at pull requests. The ones that are correct are all in the same repo with each other, and the ones that are not correct are all in a different repo but same one as each other. In case it's related to something assuming all pull requests would be in the same repo.
I can see that if we aren't able to get the status checks that we're not handling that correctly. Given that the incorrect ones are all from the same repo, I think that's what's happening here. Instead of displaying the "all good" icon for these, we should show no icon. Can you share the output of "GitHub Pull Request" next time you see this?
I'm making a fix for incorrectly showing the "double check" when we should show nothing. Once I have logs I can see what I can do about why we aren't able to get the checks for those PRs.
Can you share the output of "GitHub Pull Request" next time you see this?
I'm not sure what you're asking for here. From the other context it sounds like you want a log. Where do I find that log?
There is a cofiguration dialog which lets you set multiple remotes for which to grab PRs from. The behavior is consistant with it using all of those remotes to fetch the list of PRs but only one of them to fetch the statuses. And I'm not sure how it's deciding which one to use for the statuses because it's not the first one in the list that has the accurate ones (it's the second one).
Also, it looks like mentioning this in a commit made it close the issue report, so I dunno if you'll see this.
One other observation - it doesn't seem to follow the remote belonging to the branch I currently have checked out, either. If I switch to a branch on a different remote and refresh the pull requests, the statuses don't change.
2026-07-07 07:48:40.794 [info] [Activation] Extension version: 0.154.0
2026-07-07 07:48:40.850 [info] [Authentication] Creating hub for .com
2026-07-07 07:48:40.927 [info] [Activation] Registering built in git provider.
2026-07-07 07:48:40.927 [info] [Activation] Looking for git repository
2026-07-07 07:48:40.927 [info] [Activation] Found 0 repositories during activation
2026-07-07 07:48:40.927 [info] [Activation] Git repository found, initializing review manager and pr tree view.
2026-07-07 07:48:40.928 [info] [GitAPI] Registering git provider
2026-07-07 07:48:41.090 [info] [GitPostCommitCommands] Trying to register post commit commands.
2026-07-07 07:48:43.721 [info] [GitAPI] Repository file:///Users/dave/Source/Bugzilla/bugzilla has been opened
2026-07-07 07:48:44.639 [info] [Activation] Git initialization state changed: state=initialized
2026-07-07 07:48:44.639 [info] [Review+0] Validate state in progress
2026-07-07 07:48:44.639 [info] [Review+0] Validating state...
2026-07-07 07:48:45.236 [info] [Review+0] Queuing additional validate state
2026-07-07 07:48:45.236 [info] [Activation] Repo state for file:///Users/dave/Source/Bugzilla/bugzilla changed.
2026-07-07 07:48:45.236 [info] [Activation] Repo file:///Users/dave/Source/Bugzilla/bugzilla has already been setup.
2026-07-07 07:48:45.462 [info] [FolderRepositoryManager+0] Found GitHub remote for folder /Users/dave/Source/Bugzilla/bugzilla
2026-07-07 07:48:46.007 [info] [FolderRepositoryManager+0] Trying to use globalState for assignableUsers.
2026-07-07 07:48:46.007 [info] [GitPostCommitCommands] Trying to register post commit commands.
2026-07-07 07:48:46.007 [info] [GitPostCommitCommands] GitHub remote(s) found, registering post commit commands.
2026-07-07 07:48:46.007 [info] [GitPostCommitCommands] Looking for remote. Comparing 11 local repo remotes with 4 GitHub repositories.
2026-07-07 07:48:46.008 [info] [GitPostCommitCommands] Found a repo when getting post commit commands.
2026-07-07 07:48:46.008 [info] [GitPostCommitCommands] Looking for remote. Comparing 11 local repo remotes with 4 GitHub repositories.
2026-07-07 07:48:46.008 [info] [GitPostCommitCommands] Found a repo when getting post commit commands.
2026-07-07 07:48:46.103 [info] [FolderRepositoryManager+0] Using globalState assignableUsers for 4.
2026-07-07 07:48:46.223 [info] [Review+0] No matching pull request metadata found locally for current branch harmony
2026-07-07 07:48:47.295 [info] [Review+0] Queuing additional validate state
2026-07-07 07:48:48.321 [info] [Review+0] No matching pull request metadata found on GitHub for current branch harmony
2026-07-07 07:48:48.333 [info] [Review+0] Validating state...
2026-07-07 07:48:48.682 [info] [FolderRepositoryManager+0] Found GitHub remote for folder /Users/dave/Source/Bugzilla/bugzilla
2026-07-07 07:48:48.683 [info] [FolderRepositoryManager+0] Using in-memory cached assignable users.
2026-07-07 07:48:48.724 [info] [Review+0] No matching pull request metadata found locally for current branch harmony
2026-07-07 07:48:50.908 [info] [Review+0] No matching pull request metadata found on GitHub for current branch harmony
2026-07-07 07:48:50.920 [info] [Review+0] Validating state...
2026-07-07 07:48:52.003 [info] [FolderRepositoryManager+0] Found GitHub remote for folder /Users/dave/Source/Bugzilla/bugzilla
2026-07-07 07:48:52.003 [info] [FolderRepositoryManager+0] Using in-memory cached assignable users.
2026-07-07 07:48:52.029 [info] [Review+0] No matching pull request metadata found locally for current branch harmony
2026-07-07 07:48:52.138 [error] [GitHubRepository+0] Error querying GraphQL API (PullRequest): GraphQL error: Could not resolve to a PullRequest with the number of 215..
2026-07-07 07:48:52.139 [error] [GitHubRepository+0] Unable to fetch PR: Error: GraphQL error: Could not resolve to a PullRequest with the number of 215.
2026-07-07 07:48:52.169 [error] [GitHubRepository+0] Error querying GraphQL API (PullRequest): GraphQL error: Could not resolve to a PullRequest with the number of 205..
2026-07-07 07:48:52.169 [error] [GitHubRepository+0] Unable to fetch PR: Error: GraphQL error: Could not resolve to a PullRequest with the number of 205.
2026-07-07 07:48:52.183 [error] [GitHubRepository+0] Error querying GraphQL API (PullRequest): GraphQL error: Could not resolve to a PullRequest with the number of 197..
2026-07-07 07:48:52.183 [error] [GitHubRepository+0] Unable to fetch PR: Error: GraphQL error: Could not resolve to a PullRequest with the number of 197.
2026-07-07 07:48:52.189 [error] [GitHubRepository+0] Error querying GraphQL API (PullRequest): GraphQL error: Could not resolve to a PullRequest with the number of 217..
2026-07-07 07:48:52.189 [error] [GitHubRepository+0] Unable to fetch PR: Error: GraphQL error: Could not resolve to a PullRequest with the number of 217.
2026-07-07 07:48:52.220 [error] [GitHubRepository+0] Error querying GraphQL API (PullRequest): GraphQL error: Could not resolve to a PullRequest with the number of 214..
2026-07-07 07:48:52.220 [error] [GitHubRepository+0] Unable to fetch PR: Error: GraphQL error: Could not resolve to a PullRequest with the number of 214.
2026-07-07 07:48:52.365 [info] [Review+0] Skipping GitHub check for branch harmony: no new PRs since last check
2026-07-07 07:48:52.365 [info] [Review+0] No matching pull request metadata found on GitHub for current branch harmony
Thanks for the info! I think I see what's up. The latest stable version (0.156.0) should be showing no green checks for these PRs. Starting tomorrow, the pre-release version (requires latest VS Code Insiders) should show pending for these PRs.
Activity
alexr00 commentedon Jun 30, 2026
Are you seeing this on GitHub.com, or in the VS Code "GitHub Pull Request" extension?
justdave commentedon Jul 1, 2026
in the VS Code "GitHub Pull Request" extension. It looks correct on GitHub, and the indicators in the extension don't match GitHub in these two cases.
alexr00 commentedon Jul 1, 2026
Got it. Can you share a screenshot of what you're seeing?
justdave commentedon Jul 2, 2026
In the "Created by me" section, the four "[Harmony]" ones are all still blocked on reviews, but have the green checkmark on the right.. The "[5.2]" and "[5.0.4]" ones that have the orange circle are also blocked on reviews (and the orange circle matches GitHub's indicator on the website for "reviews pending"). The "[5.3]" ones are actually ready to land, so the green checkmark is accurate on those.
If it matters any, I have related code base in different forks that live in different remotes (GitHub CoPilot can compare them all with each other using git commands that way), so I have three repos configured to look at pull requests. The ones that are correct are all in the same repo with each other, and the ones that are not correct are all in a different repo but same one as each other. In case it's related to something assuming all pull requests would be in the same repo.
alexr00 commentedon Jul 3, 2026
I can see that if we aren't able to get the status checks that we're not handling that correctly. Given that the incorrect ones are all from the same repo, I think that's what's happening here. Instead of displaying the "all good" icon for these, we should show no icon. Can you share the output of "GitHub Pull Request" next time you see this?
alexr00 commentedon Jul 3, 2026
I'm making a fix for incorrectly showing the "double check" when we should show nothing. Once I have logs I can see what I can do about why we aren't able to get the checks for those PRs.
Handle unknown checks case (#8827)
justdave commentedon Jul 4, 2026
I'm not sure what you're asking for here. From the other context it sounds like you want a log. Where do I find that log?
There is a cofiguration dialog which lets you set multiple remotes for which to grab PRs from. The behavior is consistant with it using all of those remotes to fetch the list of PRs but only one of them to fetch the statuses. And I'm not sure how it's deciding which one to use for the statuses because it's not the first one in the list that has the accurate ones (it's the second one).
Also, it looks like mentioning this in a commit made it close the issue report, so I dunno if you'll see this.
justdave commentedon Jul 4, 2026
I guess since it's closed I should actually Alex Ross (@alexr00) you. :-)
One other observation - it doesn't seem to follow the remote belonging to the branch I currently have checked out, either. If I switch to a branch on a different remote and refresh the pull requests, the statuses don't change.
alexr00 commentedon Jul 7, 2026
Can you share a screenshot?
Open the Output panel, and choose "GitHub Pull Request" from the dropdown.
justdave commentedon Jul 7, 2026
GitHub Pull Request output log
alexr00 commentedon Jul 9, 2026
Thanks for the info! I think I see what's up. The latest stable version (0.156.0) should be showing no green checks for these PRs. Starting tomorrow, the pre-release version (requires latest VS Code Insiders) should show
pendingfor these PRs.Try fix "awaiting approval" issue (#8835)