docs: update CodeRabbit workflow review instructions to nudge quality (#1799)#1809
Conversation
|
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:
WalkthroughRewrites CodeRabbit review guidance in Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Updates the CodeRabbit configuration to shift GitHub workflow/script review guidance from rigid “MUST”-style rules to a more balanced, scope-aware set of quality nudges, and records the change in the changelog.
Changes:
- Rewrote
.github/workflows/**/*review instructions into sectioned guidance (security essentials, input safety, dry-run, operational quality, API discipline, review scope). - Rewrote
.github/scripts/**/*.shand.github/scripts/**/*.jsguidance into “firm expectations” vs “good practices”. - Added an
[Unreleased]changelog entry for the updated CodeRabbit guidance.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
.coderabbit.yaml |
Replaces priority-tiered workflow/script review rules with sectioned, quality-nudging guidance and explicit review-scope constraints. |
CHANGELOG.md |
Adds an Unreleased entry documenting the CodeRabbit review-instructions update. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Mounil2005
left a comment
There was a problem hiding this comment.
Thanks @ambicuity for improving this....this should meaningfully reduce noisy, scope-creeping bot feedback while keeping quality high.
Some suggestions :
-
Add an explicit “Blockers vs Suggestions” rubric
Please add a short section that clearly distinguishes what should block approval (security/correctness) vs what should be a non-blocking suggestion (style/maintainability). This will help keep CodeRabbit feedback consistent and prevent scope creep. -
Keep “Security Essentials” explicitly non-negotiable
Even with the softer tone overall, I’d recommend making “Security Essentials” unambiguous (e.g., “must/block if violated”), especially for SHA-pinning third-party actions, minimal permissions, fork safety, and input hardening. -
Tighten dry-run guidance with concrete criteria
The new dry-run wording is good, could we make it more actionable with 2–3 bullets (e.g., prefer dry-run for deploy/publish/release/state-mutating workflows; usually unnecessary for read-only CI)? This should reduce subjective/flip-floppy reviews.
|
Addressed all review feedback — thanks @Mounil2005 for the thorough suggestions! Changes in this push:
|
|
Hi, this is MergeConflictBot. Please resolve these conflicts locally and push the changes. Quick Fix for CHANGELOG.md ConflictsIf your conflict is only in CHANGELOG.md, you can resolve it easily using the GitHub web editor:
For all other merge conflicts, please read: Thank you for contributing! |
exploreriii
left a comment
There was a problem hiding this comment.
Hi @ambicuity
Good start but we should work to make this a lot more concise
Harcoding should be avoided in the .js, and variables should be added there at the top level, but passed down from the yml where possible as env
|
Addressed all review feedback — thanks @exploreriii for the detailed comments! Changes in this push
Net change: −74 lines in Also rebased onto |
exploreriii
left a comment
There was a problem hiding this comment.
Hi @ambicuity I think this is a very good improvement, i expect it will help a lot
Thank you
|
@ambicuity rebase please and ready to go 👍 |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #1809 +/- ##
=======================================
Coverage 93.29% 93.29%
=======================================
Files 141 141
Lines 9119 9119
=======================================
Hits 8508 8508
Misses 611 611 🚀 New features to boost your workflow:
|
183ccf4 to
905145e
Compare
|
[commit-verification-bot]
View your commit verification status: Commits Tab. To achieve verified status, please read: Remember, you require a GPG key and each commit must be signed with: Thank you for contributing! From the Hiero Python SDK Team |
|
Hi i @ambiguity, after attempting a GitHub UI rebase, the last three commits were rewritten. This is causing the DCO check to fail. Since the branch is from your fork, could you please rebase locally and re-sign the last three commits, then push the updates? You can run something like: After that, rebasing onto the latest main should work cleanly. |
…hiero-ledger#1799) Rewrites the .github/workflows, .github/scripts/*.sh, and .github/scripts/*.js CodeRabbit review instructions from a prescriptive MUST/PRIORITY style to a balanced, quality-nudging approach. Key changes: - Replace rigid PRIORITY 0-8 structure with natural section headers - Reframe dry-run from mandatory requirement to contextual recommendation - Use encouraging language (should, prefer, consider) instead of MUST - Add REVIEW SCOPE section to prevent scope creep in reviews - Keep security essentials firm: SHA pinning, permissions, fork safety - Restructure shell and JS script sections with firm/good-practice tiers Closes hiero-ledger#1799 Signed-off-by: Ritesh Patil <riteshsanjaypatil@gmail.com> Signed-off-by: riteshr19 <riteshrana36@gmail.com>
…r#1799) - Security Essentials: use 'must' for firm expectations (Mounil2005, Copilot) - Add Blockers vs Suggestions rubric to prevent scope creep (Mounil2005) - Add concrete dry-run criteria: prefer for deploy/publish/release (Mounil2005) - Allow script-level DRY_RUN as defense-in-depth (Copilot) - Add eval/injection caution to shell script section (CodeRabbit) - Hyphenate 'higher-quality' in CHANGELOG (Copilot) Signed-off-by: Ritesh Kumar <ritesh@ambicuity.com> Signed-off-by: riteshr19 <riteshrana36@gmail.com>
- Removed motto/philosophy lines (730-732) - Replaced 'must not modify source code' with 'must not request contents: write' - Merged INPUT SAFETY into SECURITY ESSENTIALS - Combined CLARITY & CODE ORGANIZATION into one section - Env vars should be defined in YAML and passed to scripts - Drastically shortened DRY-RUN section (clear, well-logged, default true) - Compressed OPERATIONAL QUALITY and API DISCIPLINE: removed repetition - REVIEW SCOPE: flag out-of-scope as irrelevant, suggest new PR - Shell scripts: removed duplicate input validation, simplified to essentials - JS scripts: added hardcoding/env-var guidance, removed generic repetition Signed-off-by: riteshr19 <riteshrana36@gmail.com>
|
Hi @manishdait, I have rebased and signed off on the last three commits to fix the DCO check! I also explicitly included |
|
@manishdait please merge if suitable, else please request explicitly second opinions |
Description
Rewrites the CodeRabbit review instructions for
.github/workflows/**/*,.github/scripts/**/*.sh, and.github/scripts/**/*.jsfrom a prescriptive MUST/PRIORITY style to a balanced, quality-nudging approach that encourages better practices without causing scope creep.What changed
MUST,REQUIRED,ABSOLUTE REQUIREMENTSshould,prefer,consider,good practiceMUSTbullet listMUSTbullet listWhy
The V1 prompt was overly prescriptive, which led to:
The V2 prompt keeps security essentials firm while providing quality signals rather than rigid rules.
Security essentials retained
Files changed
.coderabbit.yaml— Rewritten workflow/script review sectionsCHANGELOG.md— Added entry under[Unreleased] > .githubTesting
yaml.safe_load()— YAML syntax valid ✓ruff check— No new lint issues ✓pytest tests/unit/— 1495 passed ✓Closes #1799