Skip to content

Post summary comment before inline findings (v0.5.3) - #18

Merged
ccyrene merged 1 commit into
mainfrom
fix/summary-comment-before-inline
Jul 8, 2026
Merged

Post summary comment before inline findings (v0.5.3)#18
ccyrene merged 1 commit into
mainfrom
fix/summary-comment-before-inline

Conversation

@ccyrene

@ccyrene ccyrene commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Summary

User feedback: the summary comment (overview + findings table) posted LAST in the PR timeline, after all inline findings, since each inline comment auto-creates its own "reviewed" event on GitHub. A reader scanning the PR saw line-by-line detail before the TL;DR overview — backwards.

Reordered post() to post the summary first, then inline findings. format_summary_body() doesn't depend on posted_inline/posted_summary, so this is a pure reorder with no behavior change beyond timeline position.

Test plan

  • fmt/clippy/test all green
  • CI green on this PR
  • After merge+tag+deploy: confirm on a real PR that the summary comment now appears before inline findings in the timeline

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com


Note

Low Risk
Pure reorder of existing API calls with no change to comment content, caps, or idempotency; only PR timeline UX improves.

Overview
Reorders PR comment posting so the overview summary appears before inline findings in the activity timeline (GitHub was showing line-by-line comments first because each inline post creates its own review event).

In Reviewer::post(), post_summary_comment now runs immediately after idempotency checks, then the existing inline-comment loop unchanged. format_summary_body and check-run posting are unaffected aside from timeline order. Version bumped to 0.5.3 in Cargo.toml / Cargo.lock.

Reviewed by Cursor Bugbot for commit d35fcf3. Configure here.

User feedback after the v0.5.2 suggestion e2e test: bugbot's summary
comment (the "TL;DR: what this PR does, N findings") was posted LAST,
after every inline comment. Each inline comment auto-creates its own
"reviewed" event on GitHub, so the PR timeline showed detailed
line-by-line findings first and the overview at the very bottom —
backwards from how a reader wants to scan a review.

format_summary_body() doesn't depend on posted_inline/posted_summary, so
reordering is safe — just moved the summary-post block above the inline
loop. post_check_run() still runs last (unaffected either way, since it's
GitHub Checks API, not a PR comment).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@himari-ai

himari-ai Bot commented Jul 8, 2026

Copy link
Copy Markdown

Claude Sonnet 5 · review

Pure reorder: the summary comment block was moved to post before the inline-findings loop instead of after, with no logic changes — format_summary_body() doesn't read posted_inline/posted_summary, and summary_body is still correctly available later for post_check_run. Version bump in Cargo.toml/Cargo.lock is consistent.

No findings.

— Claude Sonnet 5 · 234.4k tokens

@ccyrene
ccyrene merged commit b638e60 into main Jul 8, 2026
10 checks passed
@ccyrene
ccyrene deleted the fix/summary-comment-before-inline branch July 8, 2026 09:06
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