Skip to content

feat(github): Add commentOnIssue tool - #2891

Merged
dcramer merged 1 commit into
mainfrom
feat/github-comment-on-issue
Nov 7, 2026
Merged

dcramer merged 1 commit into
mainfrom
feat/github-comment-on-issue

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

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. Without in_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.

  • Add github_commentOnIssue. It is deferred like the other issue tools, posts to /issues/{n}/comments, and returns the comment id and URL.
  • Say in the commentOnPullRequest description that it posts a conversation comment, and point issue comments to the new tool.
  • Make the github-issues skill send comment writes to the tool instead of raw gh api. Reading comments still uses gh api.

Raw gh api POST .../issues/N/comments is 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]

@vercel

vercel Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 7, 2026 5:58pm UTC

Request Review

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

9 screenshot changes — 9 changed · 0 added · 0 removed

Review screenshots in Frameshift

Conversation Attachment · Desktop
Conversation Attachment · Desktop
Changed
Conversation Attachment · Mobile
Conversation Attachment · Mobile
Changed
Conversation Attachment Modal · Desktop
Conversation Attachment Modal · Desktop
Changed
Conversation Attachment Zoom · Desktop
Conversation Attachment Zoom · Desktop
Changed
Conversation Captured Memories Popover · Mobile
Conversation Captured Memories Popover · Mobile
Changed
Conversation Details Watched Linked Work · Desktop
Conversation Details Watched Linked Work · Desktop
Changed
Show 3 more changed screenshots
Conversation Details Watched Linked Work · Mobile
Conversation Details Watched Linked Work · Mobile
Changed
Conversation Long Transcript Touch · Mobile
Conversation Long Transcript Touch · Mobile
Changed
Settings Mcp · Desktop
Settings Mcp · Desktop
Changed

@dcramer
dcramer merged commit 675b873 into main Nov 7, 2026
46 checks passed
@dcramer
dcramer deleted the feat/github-comment-on-issue branch November 7, 2026 18:03

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 976f6669 Deployed Nov 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant