You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support issue comment reactions in add_issue_comment
Add optional comment_id support so the default add_issue_comment tool can react to a specific issue or pull request comment without exposing a separate default reaction tool. Keep body creation tied to issue_number and require reaction targets to provide either issue_number or comment_id.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -842,7 +842,8 @@ The following sets of tools are available:
842
842
-**add_issue_comment** - Add comment to issue or pull request
843
843
-**Required OAuth Scopes**: `repo`
844
844
-`body`: Comment content. Required unless reaction is provided. (string, optional)
845
-
-`issue_number`: Issue number to comment on or react to (number, required)
845
+
-`comment_id`: The numeric ID of the issue or pull request comment to react to. Use this for reactions to comments; omit it to react to the issue or pull request itself. (number, optional)
846
+
-`issue_number`: Issue or pull request number to comment on or react to. Required when body is provided, or when reaction targets an issue or pull request. (number, optional)
846
847
-`owner`: Repository owner (string, required)
847
848
-`reaction`: Emoji reaction to add. Required unless body is provided. (string, optional)
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/add_issue_comment.snap
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,20 @@
2
2
"annotations": {
3
3
"title": "Add comment to issue or pull request"
4
4
},
5
-
"description": "Add a comment and/or reaction to a specific issue in a GitHub repository. Use this tool with pull requests as well (in this case pass pull request number as issue_number), but only if user is not asking specifically to add or react to review comments. At least one of body or reaction is required.",
5
+
"description": "Add a comment and/or reaction to a specific issue or issue comment in a GitHub repository. Use this tool with pull requests as well (in this case pass pull request number as issue_number), but only if user is not asking specifically to add or react to review comments. At least one of body or reaction is required.",
6
6
"inputSchema": {
7
7
"properties": {
8
8
"body": {
9
9
"description": "Comment content. Required unless reaction is provided.",
10
10
"type": "string"
11
11
},
12
+
"comment_id": {
13
+
"description": "The numeric ID of the issue or pull request comment to react to. Use this for reactions to comments; omit it to react to the issue or pull request itself.",
14
+
"minimum": 1,
15
+
"type": "number"
16
+
},
12
17
"issue_number": {
13
-
"description": "Issue number to comment on or react to",
18
+
"description": "Issue or pull request number to comment on or react to. Required when body is provided, or when reaction targets an issue or pull request.",
Description: t("TOOL_ADD_ISSUE_COMMENT_DESCRIPTION", "Add a comment and/or reaction to a specific issue in a GitHub repository. Use this tool with pull requests as well (in this case pass pull request number as issue_number), but only if user is not asking specifically to add or react to review comments. At least one of body or reaction is required."),
1060
+
Description: t("TOOL_ADD_ISSUE_COMMENT_DESCRIPTION", "Add a comment and/or reaction to a specific issue or issue comment in a GitHub repository. Use this tool with pull requests as well (in this case pass pull request number as issue_number), but only if user is not asking specifically to add or react to review comments. At least one of body or reaction is required."),
1061
1061
Annotations: &mcp.ToolAnnotations{
1062
1062
Title: t("TOOL_ADD_ISSUE_COMMENT_USER_TITLE", "Add comment to issue or pull request"),
Description: "Issue number to comment on or react to",
1078
+
Description: "Issue or pull request number to comment on or react to. Required when body is provided, or when reaction targets an issue or pull request.",
1079
+
},
1080
+
"comment_id": {
1081
+
Type: "number",
1082
+
Description: "The numeric ID of the issue or pull request comment to react to. Use this for reactions to comments; omit it to react to the issue or pull request itself.",
0 commit comments