feat: batch GitHub Search API with OR semantics for labels and repos#66
Merged
Conversation
Replaces per-project per-label Issues API calls with a single batched Search API request per 10 repos, using `(label:"A" OR label:"B") repo:o/r1 repo:o/r2` query syntax. Reduces N×labels network round trips to ceil(N/10) calls for both `scan` and `issues all`. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
is:issue state:open (label:"A" OR label:"B") repo:o/r1 repo:o/r2 …ceil(N/10)calls for bothscanandissues allLinked issue / ADR
Closes #52 (reduces API call count to avoid rate limiting).
Working agreement
GitHubAdaptergithub_adapter_spec,scan_spec,issues_spec)bin/rubocopcleanbundle exec rspec— 246 examples, 0 failuresTest plan
#issues_matching_labelsunit tests: hash return format, empty-inputs short-circuit, batching (11 repos → 2 requests), caching (same call → 1 request), OR query structurescan_specfully rewritten to mockissues_matching_labelsreturning a hashissues_specfully rewritten; batch-level failure test replaces per-gem failure test🤖 Generated with Claude Code