feat: add coderabbit-collector-helper.sh for PR review feedback into SQLite (t166.2)#765
feat: add coderabbit-collector-helper.sh for PR review feedback into SQLite (t166.2)#765marcusquinn merged 1 commit intomainfrom
Conversation
…SQLite (t166.2) Adds a new helper script that monitors and collects CodeRabbit review feedback from GitHub PRs into a structured SQLite database. Key capabilities: - Poll for CodeRabbit review completion with configurable timeout - Extract review bodies and inline comments via GitHub API - Classify comments by severity (critical/high/medium/low/info) - Categorise by type (security/bug/performance/style/docs/testing/etc) - Idempotent collection (INSERT OR IGNORE on unique comment IDs) - Query with filters (--pr, --severity, --category, --format json) - Summary with severity/category breakdown and most-affected files - Export as JSON or CSV Design decisions: - Used jq filter files for SQL generation to avoid shell expansion of $variables and backticks in CodeRabbit comment bodies - SQLite WAL mode + busy_timeout follows mail-helper.sh/memory-helper.sh patterns - Unit separator (0x1f) for display queries to handle pipes in markdown - Negative IDs for issue comments to avoid collision with PR comment IDs - Severity/category classification done in jq (not shell) for safety
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ✨ 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 |
🔍 Code Quality Report�[0;35m[MONITOR]�[0m Code Review Monitoring Report �[0;34m[INFO]�[0m Latest Quality Status: �[0;34m[INFO]�[0m Recent monitoring activity: 📈 Current Quality Metrics
Generated on: Mon Feb 9 05:44:35 UTC 2026 Generated by AI DevOps Framework Code Review Monitoring |
|



Summary
coderabbit-collector-helper.sh— a new helper script that polls for CodeRabbit review completion on PRs, extracts review comments and inline suggestions into a SQLite database, and categorises them by severity and type.What it does
collect --pr N [--wait]poll --pr N [--timeout S]query [--severity S] [--category C] [--format json]summary [--pr N]export [--format json|csv]statusDesign decisions
$variablesand backticks in CodeRabbit comment bodies (which contain code snippets). The jq filter handles SQL single-quote escaping (gsub("'"; "''")) safely.mail-helper.shandmemory-helper.shpatterns for concurrent access safety.|) in markdown content that would breakIFS='|'parsing.INSERT OR IGNOREon uniquegh_comment_id/gh_review_idprevents duplicates on re-collection.Testing
bash -n: clean syntaxTask
Implements t166.2: "Monitor and collect CodeRabbit review feedback into structured format"