Repository navigation
feat(github): Add commentOnIssue tool - #2891
Merged
Merged
Conversation
Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dcramer
approved these changes
Nov 7, 2026
Contributor
|
9 screenshot changes — 9 changed · 0 added · 0 removed Review screenshots in Frameshift |
23 tasks done
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The GitHub plugin had typed tools to create, read, and update issues, but none to comment on one. The only typed comment tool was
github_commentOnPullRequest, which is always loaded. A search for "comment on issue" ranked it first, so an agent used it for an issue. Guardian then blocked the call, because it read the tool as a pull request review comment. Withoutin_reply_to, the tool actually posts to/issues/{n}/comments, so the call would have worked. The name and description just didn't say so.github_commentOnIssue. It is deferred like the other issue tools, posts to/issues/{n}/comments, and returns the comment id and URL.commentOnPullRequestdescription that it posts a conversation comment, and point issue comments to the new tool.github-issuesskill send comment writes to the tool instead of rawgh api. Reading comments still usesgh api.Raw
gh api POST .../issues/N/commentsis still allowed through egress. Pull request conversation comments use the same endpoint, so a deny rule would need to cover both comment tools. I left that out of this change.via @dcramer.
--
View Session [Sentry]