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
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -894,7 +894,7 @@ The following sets of tools are available:
894
894
-**add_issue_comment** - Add comment to issue or pull request
895
895
-**Required OAuth Scopes**: `repo`
896
896
-`body`: Comment content. Required unless reaction is provided. (string, optional)
897
-
-`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. Cannot be combined with body. (number, optional)
897
+
-`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. Cannot be combined with body. (integer, optional)
898
898
-`issue_number`: Issue or pull request number to comment on or react to. (number, required)
899
899
-`owner`: Repository owner (string, required)
900
900
-`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
+26-1Lines changed: 26 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,40 @@
6
6
},
7
7
"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.",
8
8
"inputSchema": {
9
+
"anyOf": [
10
+
{
11
+
"required": [
12
+
"body"
13
+
]
14
+
},
15
+
{
16
+
"required": [
17
+
"reaction"
18
+
]
19
+
}
20
+
],
21
+
"dependentSchemas": {
22
+
"comment_id": {
23
+
"not": {
24
+
"required": [
25
+
"body"
26
+
]
27
+
},
28
+
"required": [
29
+
"reaction"
30
+
]
31
+
}
32
+
},
9
33
"properties": {
10
34
"body": {
11
35
"description": "Comment content. Required unless reaction is provided.",
36
+
"minLength": 1,
12
37
"type": "string"
13
38
},
14
39
"comment_id": {
15
40
"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. Cannot be combined with body.",
16
41
"minimum": 1,
17
-
"type": "number"
42
+
"type": "integer"
18
43
},
19
44
"issue_number": {
20
45
"description": "Issue or pull request number to comment on or react to.",
Description: "Issue or pull request number to comment on or react to.",
1213
1213
},
1214
1214
"comment_id": {
1215
-
Type: "number",
1215
+
Type: "integer",
1216
1216
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. Cannot be combined with body.",
1217
1217
Minimum: jsonschema.Ptr(1.0),
1218
1218
},
1219
1219
"body": {
1220
1220
Type: "string",
1221
1221
Description: "Comment content. Required unless reaction is provided.",
0 commit comments