Skip to content

Conversation

tonytrg
Copy link
Contributor

@tonytrg tonytrg commented Sep 8, 2025

There have been rightly so confusions about this tool by LLM and human interpretation.

This change in the tools naming and description signifies the difference between:

  • issue comments
  • pr review comments

We are sticking closer the the official documentation

Closes: #735

@tonytrg tonytrg requested a review from a team as a code owner September 8, 2025 16:21
@Copilot Copilot AI review requested due to automatic review settings September 8, 2025 16:21
Copy link
Contributor

@Copilot 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 renames the tool get_pull_request_comments to get_pull_request_review_comments to better clarify its purpose. The change addresses confusion between issue comments and pull request review comments by making the tool name and description more specific.

  • Renamed the tool function from GetPullRequestComments to GetPullRequestReviewComments
  • Updated tool name from get_pull_request_comments to get_pull_request_review_comments
  • Enhanced description to clarify that these are review comments on code diffs, not general issue comments

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pkg/github/tools.go Updated tool registration to use the new function name
pkg/github/pullrequests_test.go Updated test function calls and assertions to match the new tool name
pkg/github/pullrequests.go Renamed function and updated tool definition with clearer description
pkg/github/toolsnaps/get_pull_request_review_comments.snap Added snapshot file for the renamed tool
README.md Updated documentation to reflect the new tool name and description

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@tonytrg tonytrg merged commit 9db2e17 into main Sep 9, 2025
16 checks passed
@tonytrg tonytrg deleted the tonytrg/update-tools-description branch September 9, 2025 11:26
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.

GitHub MCP server returns 404 errors for private repository PR comments despite having access
2 participants