Skip to content

Make sure comments are initialized#8541

Merged
alexr00 merged 1 commit intomainfrom
alexr00/voluntary-parrotfish
Feb 24, 2026
Merged

Make sure comments are initialized#8541
alexr00 merged 1 commit intomainfrom
alexr00/voluntary-parrotfish

Conversation

@alexr00
Copy link
Copy Markdown
Member

@alexr00 alexr00 commented Feb 24, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 24, 2026 14:05
@alexr00 alexr00 enabled auto-merge (squash) February 24, 2026 14:05
@alexr00 alexr00 self-assigned this Feb 24, 2026
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 24, 2026
Copy link
Copy Markdown
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 ensures that review thread comments are properly initialized when language model tools fetch pull request data. The change addresses a scenario where timeline events indicate the presence of reviews or comments, but the comments array hasn't been populated yet.

Changes:

  • Extract review and comment event filtering logic to a reusable variable to avoid duplication
  • Add lazy initialization of review thread comments when timeline events suggest they should exist but the comments array is empty
  • Reuse the filtered events for building timeline comments in the response

@alexr00 alexr00 merged commit 56702c6 into main Feb 24, 2026
10 checks passed
@alexr00 alexr00 deleted the alexr00/voluntary-parrotfish branch February 24, 2026 14:59
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