docs: add agent-assisted PR review guidelines - #715
Conversation
Signed-off-by: Yunfeng Zhang <yunzhang@nvidia.com>
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📜 Recent review details⏰ Context from checks skipped due to timeout. (2)
WalkthroughThe pull request adds a review-comment contract, extends the GitHub CLI helper to collect and submit reviews, and updates repository guidance and tests for the workflow. ChangesPull Request Review Workflow
Estimated code review effort: 3 (Moderate) | ~25 minutes Merge Risk: 🔵 Low · up to The helper command still produces an unhandled traceback for a non-numeric PR argument instead of a clear validation error. This is a bounded CLI correctness issue, so the PR is mergeable with explicit owner follow-up. Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Greptile SummaryThe PR adds an agent-assisted pull-request review workflow and a head-pinned helper for submitting approved reviews.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
|
Signed-off-by: Yunfeng Zhang <yunzhang@nvidia.com>
Signed-off-by: Yunfeng Zhang <yunzhang@nvidia.com>
Signed-off-by: Yunfeng Zhang <yunzhang@nvidia.com>
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (2)
.agents/skills/github-cli/tests/test_gh_pr_helper.py (1)
139-146: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueConsider adding a case for a valid multiline range payload.
The current test covers only the rejection path. A positive case that sets
start_lineandstart_sidetogether and asserts thegithub_payload()output would lock the wire format for multiline findings..agents/skills/github-cli/scripts/gh_pr_helper.py (1)
259-281: 🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick winHandle GitHub API failures in
submit_review.PyGithub does not provide
PullRequestReview.get_comments(), so retainpr.get_review_comments()for retrieving posted comments. CatchGithubExceptionaround the submission and retrieval calls to avoid raw tracebacks. Warn that retrying after an uncertain failure can create duplicate reviews.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 77159167-355c-4e3e-a4b7-2b351c0f578b
📒 Files selected for processing (5)
.agents/skills/github-cli/SKILL.md.agents/skills/github-cli/references/review-comments.md.agents/skills/github-cli/references/workflows.md.agents/skills/github-cli/scripts/gh_pr_helper.py.agents/skills/github-cli/tests/test_gh_pr_helper.py
🚧 Files skipped from review as they are similar to previous changes (1)
- .agents/skills/github-cli/references/review-comments.md
📜 Review details
⏰ Context from checks skipped due to timeout. (1)
- GitHub Check: Greptile Review
⚠️ CI failures not shown inline (2)
GitHub Actions: CI - checks / CI Status: docs: add agent-assisted PR review guidelines
Conclusion: failure
##[group]Run echo "changes: success"
�[36;1mecho "changes: success"�[0m
�[36;1mecho "format: failure"�[0m
�[36;1mecho "typecheck: success"�[0m
�[36;1mecho "wheel: skipped"�[0m
�[36;1mecho "unit-test: skipped"�[0m
�[36;1mecho "smoke-test: skipped"�[0m
�[36;1m�[0m
�[36;1mif [[ "true" == "true" ]]; then�[0m
�[36;1m echo "::error::One or more CI jobs failed"�[0m
GitHub Actions: CI - checks / 0_CI Status.txt: docs: add agent-assisted PR review guidelines
Conclusion: failure
##[group]Run echo "changes: success"
�[36;1mecho "changes: success"�[0m
�[36;1mecho "format: failure"�[0m
�[36;1mecho "typecheck: success"�[0m
�[36;1mecho "wheel: skipped"�[0m
�[36;1mecho "unit-test: skipped"�[0m
�[36;1mecho "smoke-test: skipped"�[0m
�[36;1m�[0m
�[36;1mif [[ "true" == "true" ]]; then�[0m
�[36;1m echo "::error::One or more CI jobs failed"�[0m
🧰 Additional context used
📓 Path-based instructions (1)
.agents/skills/**
📄 CodeRabbit inference engine (.cursor/rules/repo-navigation.mdc)
Store skills in canonical location
.agents/skills/with each skill containing a SKILL.md file and optional references/Repo-specific skills live in
.agents/skills/; see.agents/README.mdfor the catalog. Read a skill when the task matches its scope instead of copying workflow details into this file.
Files:
.agents/skills/github-cli/references/workflows.md.agents/skills/github-cli/SKILL.md.agents/skills/github-cli/tests/test_gh_pr_helper.py.agents/skills/github-cli/scripts/gh_pr_helper.py
🪛 GitHub Actions: CI - checks / 6_Format.txt
.agents/skills/github-cli/tests/test_gh_pr_helper.py
[error] 1-1: Formatting check failed: bash tools/codestyle/format.sh --check reported that this file would be reformatted. Run the formatter to fix it.
🪛 GitHub Actions: CI - checks / Format
.agents/skills/github-cli/tests/test_gh_pr_helper.py
[error] 1-1: Formatting check failed: the file would be reformatted. Run 'bash tools/codestyle/format.sh' to fix formatting.
🪛 Ruff (0.16.1)
.agents/skills/github-cli/scripts/gh_pr_helper.py
[warning] 336-345: Do not perform function call typer.Option in argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable
(B008)
🪛 SkillSpector (2.5.1)
.agents/skills/github-cli/SKILL.md
[warning] 226: [EA2] Autonomous Decision Making: Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
Remediation: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
(Excessive Agency (EA2))
[warning] 226: [EA2] Autonomous Decision Making: Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
Remediation: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
(Excessive Agency (EA2))
🔇 Additional comments (4)
.agents/skills/github-cli/scripts/gh_pr_helper.py (2)
79-98: LGTM!Also applies to: 109-171
336-345: 🎯 Functional CorrectnessKeep
path_type=Pathunchanged. Typer 0.24.1 forwards it to Click, and Click supportspathlib.Path. Thereview_file: Pathannotation is consistent with the resulting value..agents/skills/github-cli/references/workflows.md (1)
227-227: LGTM!Also applies to: 237-243, 274-282
.agents/skills/github-cli/SKILL.md (1)
13-19: 📐 Maintainability & Code QualityReferences are present and valid. Both links resolve, and
review-comments.mdcontains theSubmit an Approved Reviewheading.
Signed-off-by: Yunfeng Zhang <yunzhang@nvidia.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Yunfeng Zhang <zywind@gmail.com>
Summary
Example review
Test plan
uv run --no-project .../quick_validate.py .agents/skills/github-climise run format-checkSummary by CodeRabbit
New Features
Bug Fixes
Documentation