Skip to content

feat(review): add option to file findings on the PR as comments#214

Open
ryzizub wants to merge 2 commits into
mainfrom
feat/review-file-findings-on-pr
Open

feat(review): add option to file findings on the PR as comments#214
ryzizub wants to merge 2 commits into
mainfrom
feat/review-file-findings-on-pr

Conversation

@ryzizub

@ryzizub ryzizub commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a post-review option to /review: file selected findings on the branch's pull request as comments.

  • Step 4 gains "File findings on the PR as comments" — the user picks which findings (all, critical + important, or specific FINDING-NN ids), and each is posted as an inline comment anchored to its file:line via gh/glab, with a single summary comment as fallback when a line isn't on the diff or no PR/CLI is available.
  • Mechanism lives in a new shared reference file-findings-on-pr.md (symlinked into the review skill); allowed-tools now permits gh/glab.

Builds on the consolidated FINDING-NN review output from #210 (now merged to main).

markdownlint, cspell, and claude plugin validate all clean.

Type of Change

  • New feature (feat)
  • Bug fix (fix)
  • Code refactor (refactor)
  • Documentation (docs)
  • CI change (ci)
  • Chore (chore)

🤖 Generated with Claude Code

@ryzizub ryzizub force-pushed the feat/review-file-findings-on-pr branch from b4ddbb4 to 04beb4f Compare July 3, 2026 10:09
@ryzizub ryzizub changed the title feat(review): file findings on the PR as comments feat(review): add option to file findings on the PR as comments Jul 3, 2026
Base automatically changed from claude/kind-fermi-092663 to main July 3, 2026 14:00
Add a post-review option to /review Step 4 that posts selected findings to the
branch's pull request. The user chooses which findings (all, critical+important,
or specific FINDING-NN ids); each is posted as an inline comment anchored to its
file:line via gh/glab, with a single summary comment as fallback when a line is
not on the diff or no PR/CLI is available. Mechanism lives in a new shared
reference (file-findings-on-pr.md), symlinked into the review skill; allowed-tools
now permits gh/glab. Also fix the Step 4 pointer to the renamed
"Act (by id or rule)" consolidation heading.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ryzizub ryzizub force-pushed the feat/review-file-findings-on-pr branch from 04beb4f to 15dcfeb Compare July 3, 2026 14:01
@ryzizub ryzizub marked this pull request as ready for review July 3, 2026 14:03
@ryzizub ryzizub requested a review from a team as a code owner July 3, 2026 14:03
Comment thread skills/review/SKILL.md Outdated
- **Fix critical + important**: same, plus Important findings.
- **Fix specific findings**: accept ids from the user (e.g. "FINDING-01, FINDING-04"), or a
rule id to act on a whole class (e.g. "fix every `tests/missing-test-file`").
- **File findings on the PR as comments**: post selected findings to the branch's pull

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we not have a user validation here to confirm they agree with the message that is going to be posted, and not just the finding?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True i was focusing on filtering what user wants to post

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

… to post)

Address review feedback: make filing findings on the PR a two-step choice.
First the user picks which findings are worth posting; then, after previewing
the drafted comments, they choose how to deliver — inline comments, one summary
comment, or print the drafts to post manually. Nothing posts without both
choices, keeping AI-review verbosity from landing on the PR unasked.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants