Skip to content

Conversation

@lszomoru
Copy link
Member

@lszomoru lszomoru commented Nov 8, 2025

Expanded the proposed API to include the number of files changed in a chat session. Adopted the new API for CCA.

//cc @osortega, @rebornix

Copilot AI review requested due to automatic review settings November 8, 2025 12:56
@lszomoru lszomoru enabled auto-merge November 8, 2025 12:56
@lszomoru lszomoru self-assigned this Nov 8, 2025
@lszomoru lszomoru added this to the November 2025 milestone Nov 8, 2025
@lszomoru lszomoru force-pushed the lszomoru/afraid-marsupial branch from a3b0a3a to 6341e7e Compare November 8, 2025 12:58
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 tracking for the number of files changed in pull requests by introducing a files field to the chat session statistics. The implementation fetches file count data from GitHub's GraphQL API and surfaces it through the VS Code chat sessions API.

Key Changes:

  • Added files field to PullRequestSearchItem interface and corresponding GraphQL queries
  • Extended VS Code chat sessions API type definition to include files in statistics
  • Updated CopilotCloudSessionsProvider to populate the files statistic from PR data

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
src/platform/github/common/githubAPI.ts Added files.totalCount field to PullRequestSearchItem interface and both GraphQL queries (makeSearchGraphQLRequest and getPullRequestFromGlobalId)
src/extension/vscode.proposed.chatSessionsProvider.d.ts Added files: number field to the statistics object in ChatSessionItem interface with JSDoc documentation
src/extension/chatSessions/vscode-node/copilotCloudSessionsProvider.ts Updated session object creation to populate files statistic from pr.files.totalCount

@lszomoru lszomoru added this pull request to the merge queue Nov 8, 2025
Merged via the queue into main with commit 548327e Nov 8, 2025
16 checks passed
@lszomoru lszomoru deleted the lszomoru/afraid-marsupial branch November 8, 2025 14:04
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