Repository navigation
feat: upgrade review template — YAML frontmatter, emoji badges, pipe tables - #18
Merged
Merged
Conversation
added 12 commits
May 14, 2026 16:17
Forks cannot trigger the ai-code-review job on the self-hosted runner. Condition: github.event.pull_request.head.repo.full_name == github.repository
- actions/checkout → 11bd719 (v4.2.2) - dtolnay/rust-toolchain → 29eef33 (stable branch HEAD, toolchain: 1.87.0) - softprops/action-gh-release → c95fe14 (v2.2.1) - Rust toolchain pinned to 1.87.0 for reproducible builds Also changes release trigger from push.branches[main] to push.tags[v*.*.*] so releases only publish on explicit version tags.
- Pin cross to v0.2.5 to avoid unpinned HEAD in release pipeline - Escape dots in SemVer tag pattern (glob wildcard fix) - Add permissions: read-all at workflow level in ci.yml
Tests assert YAML frontmatter, emoji severity badges, and pipe table syntax — all currently failing. Implementation follows in next commit.
…tables - System prompts: role-focused, format instructions moved to user prompts - SINGLE_ROUND_USER_TEMPLATE: full format spec with YAML frontmatter, pipe-syntax Markdown tables, emoji severity badges (🔴🟠🟡🟢) - SUMMARIZE_SYSTEM_PROMPT: same role-focused prompt as single-round - Summarization user message: full format spec with deduplication rule - chunk_user_prompt: clarified bullet format with severity labels
- summarize_prompt_contains_both_sections → summarize_system_prompt_is_role_focused (SUMMARIZE_SYSTEM_PROMPT is now a short role prompt, not a format spec) - single_round_prompt_contains_both_sections: updated heading level and sort wording to match new template (### with emoji, 'Sort rows: Critical first')
The LLM template now includes its own '## 🔍 AI Code Review' header and attribution footer. Remove the Rust-side format wrapper to avoid duplicating these elements in the posted GitHub comment.
Extract SUMMARIZE_USER_TEMPLATE const from inline format string in summarize_review, enabling unit tests for the multi-file review path. Add 3 tests: YAML frontmatter, emoji badges, deduplication rule.
cargo-audit v0.22.1 dependencies (home, smol_str, time) require Rust 1.88+. --locked pins to versions compatible with our toolchain (1.87.0).
time 0.3.47, time-core 0.1.8, and time-macros 0.2.27 require Rust 1.88.0. Update both CI and release workflows.
AI Code ReviewCode Quality Issues
Security Issues
This review was generated by self-hosted AI reviewer. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #17
findings(counts per severity),top_files(up to 3 most-affected files),risk_score(highest severity present)| # | Location | Issue |) that render correctly on GitHub instead of plain textSUMMARIZE_USER_TEMPLATE— summarize path prompt extracted to named constant, enabling full test coverageFiles changed
crates/code-review-cli/src/review.rsTest plan
cargo test --workspace— 19 tests passing, 0 failuresGenerated with Claude Code