Repository navigation
Commit bd73d3a
fix(triage): make gh api mandatory for review comments, closing /code-review's print fallback
/code-review --comment prefers mcp__github_inline_comment__create_inline_comment and,
when that tool is missing, says "fall back to gh api ... or print the findings instead".
The bot never loads that tool (--strict-mcp-config), so every review lands on that
sentence. PR springfall2008#5283's run took the print branch without attempting gh api at all, so
nothing was denied and the existing "report a denial, don't print" rule never applied.
The review was lost and the PR was marked BOT_FAILED.
GH_API_ENDPOINT_FIRST_PROMPT now names the tool as absent and makes gh api the required
path, allowing printing only after a gh api call has actually been denied.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent f6e996e commit bd73d3a
2 files changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
775 | 775 | | |
776 | 776 | | |
777 | 777 | | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
778 | 790 | | |
779 | 791 | | |
780 | 792 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
473 | | - | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
474 | 478 | | |
475 | 479 | | |
476 | 480 | | |
| |||
524 | 528 | | |
525 | 529 | | |
526 | 530 | | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
527 | 535 | | |
528 | 536 | | |
529 | 537 | | |
| |||
0 commit comments