Skip to content

Conversation

@codegen-sh
Copy link
Contributor

@codegen-sh codegen-sh bot commented Mar 21, 2025

This PR adds support for including comments and reviews in the GithubViewPRTool output.

Changes:

  1. Updated the ViewPRObservation class to include fields for comments and reviews
  2. Modified the get_modified_symbols_in_pr method in the Codebase class to fetch and return PR comments and reviews
  3. Fixed a typo in the variable name (moddified_symbols -> modified_symbols)

Implementation Details:

  • Comments include both issue comments and review comments (comments on specific lines)
  • Each comment includes metadata like user, body, creation date, etc.
  • Reviews include metadata like user, body, state, etc.

Fixes the issue mentioned in Slack: https://codegencommunity.slack.com/archives/C08JKKP35PT/p1742572530749669?thread_ts=1742408765.927599&cid=C08JKKP35PT

modified_symbols: list[str] = Field(
description="Names of modified symbols in the PR",
)
comments: list[dict[str, Any]] = Field(
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please call this github_comments?

@codegen-sh
Copy link
Contributor Author

codegen-sh bot commented Mar 24, 2025

I've addressed the review comment by renaming the comments field to github_comments in a new PR: #952. Once that PR is merged, you can rebase this PR to include those changes.

description="Comments on the PR",
default_factory=list,
)
reviews: list[dict[str, Any]] = Field(
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe call this github_reviews

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.

1 participant