Skip to content

Describe the changes in the AI review fix PR - #19

Merged
ryanmelt merged 1 commit into
mainfrom
ai-review-fix-pr-description
Oct 12, 2026
Merged

ryanmelt merged 1 commit into
mainfrom
ai-review-fix-pr-description

Conversation

@ryanmelt

Copy link
Copy Markdown
Member

What changed

The fix PR opened by the AI review (ai_review_publish.sh) now has a What changed section. It lists each fix commit's subject and the fixes recorded in that commit's message (path:line - problem and fix, from the reviewers' issues_fixed). Before, the body was one line pointing back to the reviewed PR plus a list of commit subjects.

Why it changed

A reviewer of the fix PR had to go to the parent PR's review comment to find out what the fixes did. The fix PR should describe its own changes.

Testing strategy

Extended test_publish_opens_a_fix_pr_by_default to check the PR body: the heading, the commit subject, the fix line, that <!-- is escaped and that the AI-Review-Bot trailers are left out. python3 -m unittest discover -s tests passes (89 tests) and ruff is clean.

Review notes

  • The text comes from the fix commit messages, which have already passed apply_fixes's secret check and are scanned by the Malicious Code Scan. So the body adds no new unchecked agent text.
  • <!-- is escaped the same way as in the review summary, and the body is cut at 60,000 characters to stay under GitHub's limit.
  • The body is written only when the fix PR is created. A rerun that reuses an existing fix PR doesn't update it, which is the same as before.

🤖 Generated with Claude Code

The fix PR only pointed back at the reviewed PR and listed commit
subjects, so a reviewer had to go to the parent PR to learn what the
fixes did. Its body now has a "What changed" section listing each fix
commit with the fixes its message records (file, line, problem and
fix), without the harness trailers. Comment openers are escaped as in
the review summary, and the body is capped under GitHub's limit.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@ryanmelt
ryanmelt merged commit 848a2c9 into main Oct 12, 2026
3 checks passed
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.

1 participant