Skip to content

Commit 4305e07

Browse files
committed
fix remaining old references
1 parent 37f74d2 commit 4305e07

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ The following sets of tools are available (all are on by default):
713713
- `pullNumber`: Pull request number (number, required)
714714
- `repo`: Repository name (string, required)
715715

716-
- **get_pull_request_review_comments** - Get pull request comments
716+
- **get_pull_request_review_comments** - Get pull request review comments
717717
- `owner`: Repository owner (string, required)
718718
- `pullNumber`: Pull request number (number, required)
719719
- `repo`: Repository name (string, required)

pkg/github/__toolsnaps__/get_pull_request_review_comments.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"annotations": {
3-
"title": "Get pull request comments",
3+
"title": "Get pull request review comments",
44
"readOnlyHint": true
55
},
66
"description": "Get pull request review comments. They are comments made on a portion of the unified diff during a pull request review. These are different from commit comments and issue comments in a pull request.",

pkg/github/pullrequests.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ func GetPullRequestReviewComments(getClient GetClientFn, t translations.Translat
980980
return mcp.NewTool("get_pull_request_review_comments",
981981
mcp.WithDescription(t("TOOL_GET_PULL_REQUEST_REVIEW_COMMENTS_DESCRIPTION", "Get pull request review comments. They are comments made on a portion of the unified diff during a pull request review. These are different from commit comments and issue comments in a pull request.")),
982982
mcp.WithToolAnnotation(mcp.ToolAnnotation{
983-
Title: t("TOOL_GET_PULL_REQUEST_REVIEW_COMMENTS_USER_TITLE", "Get pull request comments"),
983+
Title: t("TOOL_GET_PULL_REQUEST_REVIEW_COMMENTS_USER_TITLE", "Get pull request review comments"),
984984
ReadOnlyHint: ToBoolPtr(true),
985985
}),
986986
mcp.WithString("owner",
@@ -1023,7 +1023,7 @@ func GetPullRequestReviewComments(getClient GetClientFn, t translations.Translat
10231023
comments, resp, err := client.PullRequests.ListComments(ctx, owner, repo, pullNumber, opts)
10241024
if err != nil {
10251025
return ghErrors.NewGitHubAPIErrorResponse(ctx,
1026-
"failed to get pull request comments",
1026+
"failed to get pull request review comments",
10271027
resp,
10281028
err,
10291029
), nil
@@ -1035,7 +1035,7 @@ func GetPullRequestReviewComments(getClient GetClientFn, t translations.Translat
10351035
if err != nil {
10361036
return nil, fmt.Errorf("failed to read response body: %w", err)
10371037
}
1038-
return mcp.NewToolResultError(fmt.Sprintf("failed to get pull request comments: %s", string(body))), nil
1038+
return mcp.NewToolResultError(fmt.Sprintf("failed to get pull request review comments: %s", string(body))), nil
10391039
}
10401040

10411041
r, err := json.Marshal(comments)

pkg/github/pullrequests_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1636,7 +1636,7 @@ func Test_GetPullRequestComments(t *testing.T) {
16361636
"pullNumber": float64(999),
16371637
},
16381638
expectError: true,
1639-
expectedErrMsg: "failed to get pull request comments",
1639+
expectedErrMsg: "failed to get pull request review comments",
16401640
},
16411641
}
16421642

0 commit comments

Comments
 (0)