← Back to Pull requests

feat: batch issue and PR conversation collection through GraphQL #213

Closed
unknown closed this pull request without merging on Sep 24, 2026 15:53 UTC
View on GitHub
unknown unknown commented on Sep 23, 2026 23:50 UTC
Author

Batched GraphQL history lets users collect complete issue and PR conversations with fewer API requests:

gitcrawl sync owner/repo --numbers 123,456 --state all --include-comments --with pr-metadata --graphql-history

Hannes’ implementation collects up to 25 parents per query, exhausts nested connections, retains exact provider identities and legacy thread IDs, and persists through the existing per-thread transactions. Transient requests have bounded retries and point/timing receipts. Regular sync and Octopool routing retain their existing behavior. Files, commit bodies, checks, Actions logs and full PR revision evidence remain outside this profile.

The maintainer completeness fix adds independent reviewThreads.comments acquisition: GitHub permits inline comments with no review association, which a reviews-only walk omits. Both paths are fully paginated and deduplicated by provider identity while retaining review bodies and metadata. Short connection counts, partial responses, missing identities, empty continuations and nonadvancing cursors fail acquisition. Fixtures cover standalone comments, nested pagination, minimized content, deleted authors, empty approvals, discussion comments, bot normalization and exact IDs.

Live acceptance used isolated temporary archives and the personal GitHub credential on 25 PRs across openclaw/gitcrawl, openclaw/mcporter, steipete/oracle and steipete/Aspects. REST and GraphQL matched all thread content and all 304 comment/review IDs and bodies: 94 discussion comments, 80 reviews and 130 inline comments. Aspects #13 supplied 17 real standalone inline comments with null review associations. Initial GraphQL collection took 17.356 seconds and 17 points; REST took 54.575 seconds. A GraphQL resync preserved all 25 legacy row IDs and REST github_ids. Ctrl-C during acquisition left no partial thread or comment rows. Total live budget was 35 reported points, or 51 including the canceled request’s conservative estimate.

The documented provider anomaly is Copilot’s inline-comment login: REST returns Copilot, while GraphQL returns copilot-pull-request-reviewer, normalized to copilot-pull-request-reviewer[bot] like review bodies. No comment counts, bodies or provider IDs differ. Raw provider objects remain available under _graphql; this profile does not invent REST-only fields or reconstruct deleted history.

Validation: focused GitHub/syncer tests passed. Full make check passed on AWS Crabbox (run), including 85.7% coverage, a clean vulnerability scan, docs and all six platform snapshot builds. Independent Codex autoreview passed with no actionable P0–P2 findings. This PR also finalizes 0.12.0 release notes with an empty Unreleased section.

Diff: 352 lines (+264 / -88) across 4 files Reviewer: steipete Review duration: 962m
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.42) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 352 lines diff across 4 files
0.42
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
56%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.351
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #213"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 56.8% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 42.5% (MEDIUM) · Higher = larger blast radius
42.5%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 56.8% · Lower = rushed or shallow review
56.8%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 18.4% · Safe to merge
18.4%