Repository navigation
feat(reconcile): list installation repositories - #87
Merged
Merged
Conversation
Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:9c58a18ca5ee6cf5;surface=exec
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.
Why
The reconciler design (#82, PR D2 of its split) needs the installation's repository list before it can walk each repository's pull requests. #83 merged the walk only, because the review fixes pushed the full lister past the 400 line limit. This PR adds the list back.
Behavior change
None for the running service, because no code calls the lister yet.
Lister.Repositoriesreturns each repository's ID and full name. It reads at most 10 pages and reports when the cap cut the list short.Decisions
Only a list that fit on one page keeps its first-page tag. A tag on page one can't see a change confined to page two. Each read of a longer list fetches every page. After a failed page it clears the tags, and a 304 hands back a copy of the cached list. Callers can edit that copy freely. The code is the reviewed version from #83, taken from the branch commit before the split.
Deviations from the task
None.
Needs human judgment
None.
Risk
Low. The lister only reads from GitHub, and no caller exists yet.
Verification
bazelisk test //... bazelisk run @tbhb_rules//lint:pr_size -- origin/main HEADAll pass, with
pr_size: code=112/400, except//deploy:deploy_test, which fails on macOS only. Tests cover the single-page tag, the two-page case with no tag, the 304 cache copy and the base path/api/v3/. A Codex run wrote the code, and a Claude session checked the diff against main before opening the PR.Human steering
None.
Opened-by: LLM effort=medium;harness=claude-code:2.1.330;model=anthropic:claude-sonnet-5-5;session=sha-256-64:6507fa80a17e0653;surface=cli
Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:9c58a18ca5ee6cf5;surface=exec
Assisted-by: LLM effort=medium;harness=claude-code:2.1.330;model=anthropic:claude-sonnet-5-5;session=sha-256-64:6507fa80a17e0653;surface=cli