Skip to content

Find active pull requests by tracked branch - #8994

Draft
Alex Ross (alexr00) with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-active-pull-request-check
Draft

Alex Ross (alexr00) with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-active-pull-request-check

Conversation

Copilot AI commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

activePullRequest could report no PR when an open PR existed for the checked-out branch but was absent from the extension’s active-PR state. That result was misleading, particularly in agents-window workflows.

  • Discovery: Preserve cached active-PR lookup; otherwise query by tracked remote and upstream branch, accepting only open PRs.
  • Results: Initialize missing review-thread data and clarify that an absent result does not rule out an existing PR.
  • Availability: Hide the tool in the agents window via !isSessionsWindow.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI and others added 2 commits September 30, 2026 09:40
…indow

Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix activePullRequest tool reporting errors for current branch Find active pull requests by tracked branch Sep 30, 2026
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.

activePullRequest misses open PR for current checked-out branch

2 participants