Skip to content

Commit c2b2dc1

Browse files
committed
Update README to reflect the unified PR review comment tool
1 parent ce6df32 commit c2b2dc1

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -288,28 +288,20 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
288288
- `draft`: Create as draft PR (boolean, optional)
289289
- `maintainer_can_modify`: Allow maintainer edits (boolean, optional)
290290

291-
- **add_pull_request_review_comment** - Add a review comment to a pull request
291+
- **add_pull_request_review_comment** - Add a review comment to a pull request or reply to an existing comment
292292

293293
- `owner`: Repository owner (string, required)
294294
- `repo`: Repository name (string, required)
295295
- `pull_number`: Pull request number (number, required)
296296
- `body`: The text of the review comment (string, required)
297-
- `commit_id`: The SHA of the commit to comment on (string, required)
298-
- `path`: The relative path to the file that necessitates a comment (string, required)
297+
- `commit_id`: The SHA of the commit to comment on (string, required unless using in_reply_to)
298+
- `path`: The relative path to the file that necessitates a comment (string, required unless using in_reply_to)
299299
- `line`: The line of the blob in the pull request diff that the comment applies to (number, optional)
300300
- `side`: The side of the diff to comment on (LEFT or RIGHT) (string, optional)
301301
- `start_line`: For multi-line comments, the first line of the range (number, optional)
302302
- `start_side`: For multi-line comments, the starting side of the diff (LEFT or RIGHT) (string, optional)
303303
- `subject_type`: The level at which the comment is targeted (line or file) (string, optional)
304-
- `in_reply_to`: The ID of the review comment to reply to (number, optional)
305-
306-
- **reply_to_pull_request_review_comment** - Reply to an existing review comment on a pull request
307-
308-
- `owner`: Repository owner (string, required)
309-
- `repo`: Repository name (string, required)
310-
- `pull_number`: Pull request number (number, required)
311-
- `comment_id`: The unique identifier of the comment to reply to (number, required)
312-
- `body`: The text of the reply comment (string, required)
304+
- `in_reply_to`: The ID of the review comment to reply to (number, optional). When specified, only body is required and other parameters are ignored.
313305

314306
- **update_pull_request** - Update an existing pull request in a GitHub repository
315307

pkg/github/pullrequests_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1890,7 +1890,6 @@ func Test_AddPullRequestReviewComment(t *testing.T) {
18901890
assert.NotNil(t, result)
18911891
require.Len(t, result.Content, 1)
18921892

1893-
// Check for error message in the result
18941893
textContent := getTextResult(t, result)
18951894
if tc.expectedErrMsg != "" {
18961895
assert.Contains(t, textContent.Text, tc.expectedErrMsg)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy