ci(comment-length-review): committable inline suggestions as workweave-bot - #645
Conversation
What T-Rex did
Reviews (1): Last reviewed commit: "ci(comment-length-review): committable i..." | Re-trigger Greptile |
…e-bot Two fixes to the advisory comment-length reviewer: - Emit real committable GitHub ```suggestion``` blocks spanning the whole comment block (start_line..line) so the shortened comment is one-click committable, instead of an illustrative fenced snippet. Posted via the working `gh api` reviews path (the beta action does not expose mcp__github_inline_comment__create_inline_comment, which failed at runtime and posted nothing). - Author the comments as the workweave-bot account by running the gh api call under the WEAVE_BOT_TOKEN PAT instead of GITHUB_TOKEN, which stamped every comment github-actions[bot]. Still advisory: event=COMMENT, never REQUEST_CHANGES, no required status check. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
c5456c9 to
560a255
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 560a255. Configure here.
| "body": "```suggestion\n\t// bar does X because Y.\n```\nWas 8 lines restating the code; the WHY fits in one."} | ||
| ] | ||
| } | ||
| JSON |
There was a problem hiding this comment.
Heredoc terminator invalid in example
Medium Severity
The direct_prompt example for posting reviews uses a bash <<'JSON' heredoc whose closing JSON line is indented like the surrounding YAML. Bash only accepts the closing delimiter at the start of the line, so a command copied from that example never ends the heredoc and gh api --input - gets broken or incomplete JSON instead of a review payload.
Reviewed by Cursor Bugbot for commit 560a255. Configure here.


What
Fixes the advisory comment-length reviewer so it posts actual inline review comments (not one summary dump), authored by workweave-bot.
Why
On
main(#592) the reviewer drives inline comments through the action'smcp__github_inline_comment__create_inline_commenttool, but the@betaclaude-code-action doesn't expose that tool. At runtime the model reported "inline comment tool unavailable" and fell back to posting every finding in one issue comment (e.g. #644).Changes
gh api POST .../reviewspath. Each comment is a real GitHub```suggestionblock spanning the whole comment block (start_line..line), so the shortened comment is one-click committable.gh apicall underWEAVE_BOT_TOKEN(PAT) instead ofGITHUB_TOKEN, which stamped every commentgithub-actions[bot].Still advisory:
event=COMMENT, neverREQUEST_CHANGES, no required status check registered.Note
Requires
WEAVE_BOT_TOKENto havepull_requests: writeon this repo (fine-grained) or classicreposcope.🤖 Generated with Claude Code