Skip to content

feat: deliver review fixes inline (suggestion + collapsible AI prompt) - #180

Merged
imaustink merged 1 commit into
mainfrom
feat/review-agent-inline-fix-suggestions
Aug 1, 2026
Merged

feat: deliver review fixes inline (suggestion + collapsible AI prompt)#180
imaustink merged 1 commit into
mainfrom
feat/review-agent-inline-fix-suggestions

Conversation

@k5s-bot

@k5s-bot k5s-bot Bot commented Aug 1, 2026

Copy link
Copy Markdown

What & why

Replaces the previous "open a follow-up ticket" approach (closed PR #178) per feedback. When the PR review agent (github-pr-labeled-review, triggered when a human applies the ai-review label) leaves a comment requesting a change, the fix now travels with the comment — nothing to open, nothing to re-transcribe.

Each change-requesting comment is an inline review comment anchored to the exact file:line, and carries:

  1. A GitHub suggestion block at the comment's top level whenever the fix is a concrete, localized line edit — so GitHub renders a one-click Apply suggestion button the author can commit directly. The block holds the complete replacement for the anchored line range; the agent widens the range if the fix spills onto neighboring lines.
  2. An optional, copy-pasteable AI-agent fix prompt, tucked into a collapsible <details> block (🤖 Prompt to fix this with an AI agent) so it stays out of the way until the author wants it. Written as a self-contained instruction (goal, file:line, acceptance criteria) another agent can act on without re-reading the diff.

Fixes that aren't a mechanical line edit (architectural / multi-file) skip the suggestion and rely on the copyable prompt. A clean approval adds neither, and no issue or ticket is opened either way.

Changes

  • charts/community-components/templates/integrationroute-github-pr-labeled-review.yaml — reworked the route's promptTemplate to instruct inline suggestion + collapsible prompt delivery; removed the ticket-opening instructions.
  • docs/integrations-gateway.md — documents the inline-fix behavior under the pull_request.labeled section.

No new config knob is introduced (the earlier fixLabelName value is not needed here) — this is purely prompt behavior. All in-prompt placeholders keep the {{`{{owner}}`}} Helm escaping; brace/delimiter balance verified.

Notes / caveats

  • Helm is not installed in this environment, so I verified the template by inspection and a brace-balance check rather than a live helm template render.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Doi7cuiWVA94FrUbBKRT1n

When the github-pr-labeled-review agent leaves a comment requesting a
change, the fix now travels with the comment instead of in a separate
ticket:

- Each change-requesting comment is an inline review comment anchored to
  the exact file:line.
- When the fix is a concrete line edit, the comment carries a GitHub
  ```suggestion block at the top level so the author gets a one-click
  "Apply suggestion" button.
- Every such comment also offers an optional, copy-pasteable AI-agent fix
  prompt, hidden in a collapsible <details> block so it stays out of the
  way until wanted.
- No follow-up issue/ticket is opened; a clean approval adds neither.

Reworks only the route's promptTemplate plus the integrations-gateway
docs -- no new config knob.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Doi7cuiWVA94FrUbBKRT1n
@imaustink
imaustink merged commit 5f07e41 into main Aug 1, 2026
1 check passed
@imaustink
imaustink deleted the feat/review-agent-inline-fix-suggestions branch August 1, 2026 13:15
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