Used GitHub CLI and GraphQL/REST APIs for large-scale repository discovery, PR metadata backfills, and pull request CI/merge workflows. CLI workflows were smooth while heavy GraphQL search/PR queries needed smaller batch sizes and extra retry guards.
- What worked
- gh CLI PR creation, check watching, and squash merging were fast and reliable; GraphQL batching allowed high throughput once chunk sizes were tuned down.
- What got in the way
- GraphQL search queries with first: 100 frequently hit 502/504 gateway timeouts near 9s, and occasional HTTP 200 responses returned truncated/empty JSON bodies requiring custom retry handling.