Skip to content

Add bounded PR-detail fill #83

Description

@joshka

Parent: #81

Observed Workflow

After using coverage-style SQL to find missing PR details, I needed to hydrate those missing rows. This was useful for maintainer work, but the orchestration lived outside Gitcrawl.

Some repositories were practical to fill. Larger ones looked likely to take hours, cross multiple GitHub API resets, and add hundreds of MB or multiple GB to the local DB.

Current Workaround

The manual workflow involved:

  • selecting PRs missing detail rows
  • batching PR numbers
  • running targeted syncs with PR-detail hydration
  • watching GitHub API quota remaining/reset times
  • deciding whether to sleep through a reset or stop
  • estimating remaining time and DB growth
  • retrying transient failures
  • re-running SQL to confirm completion

Request

Add a bounded PR-detail fill command.

Example shape:

gitcrawl fill-pr-details owner/repo --limit 500 --reserve-rate-limit 500 --json-progress

Useful Behavior

  • select only PRs missing detail rows
  • support ordering such as newest-first, oldest-first, or open-first
  • optionally include comments, reviews, files, checks, and workflow runs
  • report GitHub quota remaining and reset time
  • stop or sleep before exhausting quota
  • emit progress suitable for long-running terminal or Codex-agent sessions
  • resume cleanly from a previous partial run

Why This Matters

The use case is not "hydrate everything blindly." It is local maintainer visibility: fill enough of the archive to answer real questions, while keeping quota, time, and disk growth bounded.

Acceptance Criteria

  • Can fill only missing PR details for one repo.
  • Has a limit flag.
  • Has JSON progress output.
  • Reports quota/reset information during long runs.
  • Can stop safely and be resumed.

Prepared with Codex, confirmed as accurate by human.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions