Open
Conversation
Co-authored-by: Copilot <copilot@github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds failure telemetry around fetching pull requests, aiming to diagnose when a PR lookup fails (including whether the same PR number succeeded in another repo) and to attribute failures to a specific call site.
Changes:
- Updated
GitHubRepository.getPullRequestto require acallerNameand emit apr.getPullRequestFailedtelemetry event on errors. - Updated call sites across the extension to pass a stable
callerNamestring when fetching PRs. - Refactored PR category search fetching to use
GitHubRepository.getPullRequestrather than issuing an inline GraphQL query.
Show a summary per file
| File | Description |
|---|---|
| src/view/pullRequestCommentController.ts | Passes a caller identifier when refreshing a PR after a reply-thread error. |
| src/lm/tools/activePullRequestTool.ts | Passes a caller identifier when refreshing active PR data. |
| src/issues/userCompletionProvider.ts | Passes a caller identifier for PR fetches used to drive completion data. |
| src/github/pullRequestModel.ts | Passes a caller identifier for PR fetches used during approve head-sha validation. |
| src/github/overviewRestorer.ts | Passes a caller identifier when restoring a PR overview webview. |
| src/github/issueModel.ts | Passes a caller identifier for background PR prefetches triggered by cross-references. |
| src/github/githubRepository.ts | Adds callerName parameter, success-tracking, and failure telemetry for PR fetches. |
| src/github/folderRepositoryManager.ts | Updates PR fetch call sites and refactors category search to reuse getPullRequest. |
Copilot's findings
- Files reviewed: 8/8 changed files
- Comments generated: 3
Co-authored-by: Copilot <copilot@github.com>
alexdima
approved these changes
Apr 20, 2026
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.
No description provided.