Skip to content

Conversation

@rebornix
Copy link
Member

@rebornix rebornix commented Oct 26, 2025

CLI editor puts this together, let's visit post universe.

@rebornix rebornix self-assigned this Oct 26, 2025
@rebornix rebornix marked this pull request as ready for review October 29, 2025 19:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds functionality to display pull request file changes using remote GitHub content rather than local workspace files. The implementation creates a new content provider that fetches file content directly from GitHub's API, ensuring diffs show the exact PR state regardless of local workspace state.

Key Changes

  • Added getFileContent API to fetch file content from specific commits via GitHub
  • Fixed headRefOid type from number to string and added baseRefOid field to PR metadata
  • Implemented PRContentProvider with custom URI schemes to fetch and display remote PR content
  • Refactored PullRequestFileChangesService to use remote URIs instead of local workspace paths

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/platform/github/common/githubAPI.ts Fixed headRefOid type to string and added baseRefOid field to GraphQL queries
src/platform/github/common/githubService.ts Added getFileContent API method and base64 decoding logic
src/platform/github/common/octoKitServiceImpl.ts Implemented getFileContent with authentication handling
src/extension/chatSessions/vscode-node/prContentProvider.ts New content provider for fetching PR file content from GitHub
src/extension/chatSessions/vscode-node/pullRequestFileChangesService.ts Refactored to use remote URIs via PRContentProvider
src/extension/chatSessions/vscode-node/chatSessions.ts Registered PRContentProvider instance

@rebornix rebornix enabled auto-merge October 30, 2025 23:03
@rebornix rebornix added this pull request to the merge queue Oct 30, 2025
Merged via the queue into main with commit 2cedc2d Oct 30, 2025
16 checks passed
@rebornix rebornix deleted the rebornix/conceptual-crab branch October 30, 2025 23:27
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.

3 participants