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
{{ message }}
Repository navigation
Commit 7bfe9ae
Browse filesBrowse the repository at this point in the historyBrowse files
"description": "Add a comment and/or reaction to a specific issue or issue comment in a GitHub repository. Only works on issues; for pull requests use add_pull_request_comment. At least one of body or reaction is required.",
8
+
"inputSchema": {
9
+
"properties": {
10
+
"body": {
11
+
"description": "Comment content. Required unless reaction is provided.",
12
+
"minLength": 1,
13
+
"type": "string"
14
+
},
15
+
"comment_id": {
16
+
"description": "The numeric ID of the issue comment to react to. Use this for reactions to comments; omit it to react to the issue itself. Cannot be combined with body.",
17
+
"minimum": 1,
18
+
"type": "integer"
19
+
},
20
+
"issue_number": {
21
+
"description": "Issue number to comment on or react to.",
22
+
"type": "number"
23
+
},
24
+
"owner": {
25
+
"description": "Repository owner",
26
+
"type": "string"
27
+
},
28
+
"reaction": {
29
+
"description": "Emoji reaction to add. Required unless body is provided.",
"description": "Update the body of an existing issue comment. Only works on issue comments; for pull request conversation comments use update_pull_request_comment.",
8
+
"inputSchema": {
9
+
"properties": {
10
+
"body": {
11
+
"description": "New comment content",
12
+
"minLength": 1,
13
+
"type": "string"
14
+
},
15
+
"comment_id": {
16
+
"description": "The numeric ID of the issue comment to update.",
returnghErrors.NewGitHubAPIErrorResponse(ctx, fmt.Sprintf("failed to get #%d", number), resp, err)
72
85
}
73
86
_=resp.Body.Close()
74
87
75
88
isPullRequest:=issue.IsPullRequest()
76
89
switch {
77
90
caseisPullRequest&&!wantPullRequest:
78
-
returnutils.NewToolResultError(fmt.Sprintf("#%d in %s/%s is a pull request, not an issue. Use the pull request tools to modify it.", number, owner, repo))
91
+
returnutils.NewToolResultError(fmt.Sprintf("#%d in %s/%s is a pull request, not an issue. Use %s to modify it.", number, owner, repo, companionTool))
79
92
case!isPullRequest&&wantPullRequest:
80
-
returnutils.NewToolResultError(fmt.Sprintf("#%d in %s/%s is an issue, not a pull request. Use the issue tools to modify it.", number, owner, repo))
93
+
returnutils.NewToolResultError(fmt.Sprintf("#%d in %s/%s is an issue, not a pull request. Use %s to modify it.", number, owner, repo, companionTool))
81
94
}
82
95
returnnil
83
96
}
@@ -151,7 +164,7 @@ func issueUpdateTool(
151
164
returnutils.NewToolResultErrorFromErr("failed to get GitHub client", err), nil, nil
0 commit comments