-
Notifications
You must be signed in to change notification settings - Fork 0
docs: codify PR review workflow (CodeRabbit gate) #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughAdds two new procedure documents and updates the docs index: a PR submission + CodeRabbitAI review workflow and a procedure for extracting and categorizing CodeRabbitAI PR comments; one procedure includes a small change to example JSON title-extraction logic. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used📓 Path-based instructions (1){README*,**/*API*,**/*.md}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (4)📓 Common learnings📚 Learning: 2025-12-28T23:40:05.843ZApplied to files:
📚 Learning: 2025-12-28T23:40:05.843ZApplied to files:
📚 Learning: 2025-12-28T23:40:05.843ZApplied to files:
🪛 LanguageTooldocs/procedures/EXTRACT-PR-COMMENTS.md[style] ~16-~16: Consider using a different verb for a more formal wording. (FIX_RESOLVE) 🔇 Additional comments (11)
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
docs/procedures/EXTRACT-PR-COMMENTS.md (1)
116-147: Add defensive handling for title extraction in Step 6.Line 138 assumes comments always have a newline-separated structure with the title at index
[2]. If a comment body is malformed or has fewer lines, jq silently returns null or the wrong content.Add a fallback to prevent silent failures:
🔎 Proposed improvement
title: ( - (.body | split("\n")[2] | gsub("\\*\\*"; "")) + (.body | split("\n")[2:3][0] // "UNTITLED" | gsub("\\*\\*"; "")) ),This uses jq's
// "UNTITLED"fallback operator to ensure title is never null, making downstream processing more resilient.docs/INDEX.md (1)
79-85: Add brief descriptive context to new procedure entries for consistency.Lines 83–84 introduce new procedure entries but lack the descriptive text present in other sections (e.g., "Canonical encoding", "ADRs are the 'why' trail", etc.). Add one-line summaries to match the index's established pattern and improve discoverability.
🔎 Proposed improvement
## Reports / procedures / TeX pipeline - reports: `docs/REPORTS/` - procedures: `docs/procedures/` -- PR submission + review loop: `docs/procedures/PR-WORKFLOW.md` -- CodeRabbitAI comment extraction: `docs/procedures/EXTRACT-PR-COMMENTS.md` +- **PR submission + review loop:** Codified submission workflow requiring branch → PR → CI → CodeRabbitAI review → approval → merge. See `docs/procedures/PR-WORKFLOW.md`. +- **CodeRabbitAI comment extraction:** Procedure for identifying actionable (vs. stale/already-fixed) comments from CodeRabbitAI PR reviews. Includes bucketing by priority (P0–P3). See `docs/procedures/EXTRACT-PR-COMMENTS.md`. - PDF build: `docs/tex/build-pdf.sh`
📜 Review details
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (3)
docs/INDEX.mddocs/procedures/EXTRACT-PR-COMMENTS.mddocs/procedures/PR-WORKFLOW.md
🧰 Additional context used
📓 Path-based instructions (1)
{README*,**/*API*,**/*.md}
📄 CodeRabbit inference engine (AGENTS.md)
Update READMEs, API documentation, and internal documentation to reflect new code changes
Files:
docs/procedures/PR-WORKFLOW.mddocs/INDEX.mddocs/procedures/EXTRACT-PR-COMMENTS.md
🧠 Learnings (4)
📓 Common learnings
Learnt from: CR
Repo: flyingrobots/loom PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-28T23:40:05.843Z
Learning: Open a Pull Request targeting the `main` branch with a description that includes Summary of Changes, Link to Task, and How to Verify
Learnt from: CR
Repo: flyingrobots/loom PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-28T23:40:05.843Z
Learning: Applies to {README*,**/*API*,**/*.md} : Update READMEs, API documentation, and internal documentation to reflect new code changes
📚 Learning: 2025-12-28T23:40:05.843Z
Learnt from: CR
Repo: flyingrobots/loom PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-28T23:40:05.843Z
Learning: Applies to {README*,**/*API*,**/*.md} : Update READMEs, API documentation, and internal documentation to reflect new code changes
Applied to files:
docs/procedures/PR-WORKFLOW.mddocs/INDEX.mddocs/procedures/EXTRACT-PR-COMMENTS.md
📚 Learning: 2025-12-28T23:40:05.843Z
Learnt from: CR
Repo: flyingrobots/loom PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-28T23:40:05.843Z
Learning: Applies to .github/workflows/*.{yml,yaml} : Review and update GitHub Actions workflows in `.github/workflows/` to integrate new test cases and determine if tests should run on every Push or PR
Applied to files:
docs/procedures/PR-WORKFLOW.mddocs/procedures/EXTRACT-PR-COMMENTS.md
📚 Learning: 2025-12-28T23:40:05.843Z
Learnt from: CR
Repo: flyingrobots/loom PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-28T23:40:05.843Z
Learning: Open a Pull Request targeting the `main` branch with a description that includes Summary of Changes, Link to Task, and How to Verify
Applied to files:
docs/procedures/PR-WORKFLOW.md
🪛 LanguageTool
docs/procedures/PR-WORKFLOW.md
[grammar] ~32-~32: Ensure spelling is correct
Context: ...feat/... for features - fix/... for bugfixes - chore/... for tooling/maintenance ```bash git che...
(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)
docs/procedures/EXTRACT-PR-COMMENTS.md
[style] ~16-~16: Consider using a different verb for a more formal wording.
Context: ...** using this document. 6. Bucket and fix issues (commit early/often; push upda...
(FIX_RESOLVE)
|
CodeRabbitAI feedback extracted + addressed. ✅ Addressed in commit 8492ee9:
Batch report: /tmp/batch-14-coderabbit-issues.md |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Codifies the expected submission workflow: branch+PR, wait for CodeRabbitAI, extract/bucket review comments, iterate until approval, then merge. Also documents the no-direct-to-main and no-admin-bypass expectations.