Repository navigation
feat: brainpod github auth and github repos - #28
Open
jeroenrinzema wants to merge 1 commit into
Open
jeroenrinzema wants to merge 1 commit into
jeroenrinzema wants to merge 1 commit into
Conversation
jeroenrinzema
marked this pull request as ready for review
November 26, 2026 13:43
jeroenrinzema
requested review from
dmeijboom
and
a balanced review from Copilot
November 26, 2026 13:43
There was a problem hiding this comment.
🟡 Changes recommended
The CLI can report failure after onboarding successfully completes, prompting unnecessary mutation retries, and fallback JSON errors omit installation recovery guidance.
2 open issues
What changed in this PR
Adds first-class CLI commands for GitHub access checks and repository onboarding, bringing the console workflow into the CLI through the public API.
Changes:
- Adds GitHub installation reporting and paginated repository search with browser-based access guidance.
- Adds onboarding start, status, and finish commands with progress and continuous-deploy pull request output.
- Updates command metadata, documentation, and tests.
| File | Description |
|---|---|
src/output.rs |
Adds GitHub and onboarding renderers, guidance, and output tests. |
src/main.rs |
Emits contextual recovery guidance in error output. |
src/describe.rs |
Documents command requirements, effects, examples, and next steps. |
src/cmd/mod.rs |
Implements commands, repository lookup, access guidance, and tests. |
src/client/mod.rs |
Adds optional recovery guidance to API errors. |
README.md |
Documents the new commands and onboarding workflow. |
Review effort: Balanced
jeroenrinzema
force-pushed
the
jeroenrinzema/cli-onboarding
branch
from
November 26, 2026 14:25
0d1476d to
f2af21d
Compare
There was a problem hiding this comment.
🔵 Needs a closer look
The commands rely on an inaccessible backend PR and endpoints absent from the embedded API spec, requiring human verification of response contracts, pagination, authorization, and rollout compatibility.
2 open issues
Review effort: Balanced
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
Repository onboarding is moving to a Pod-scoped agent run: create a Pod, link a GitHub repository to it, then start the onboarding run. The first CLI step is finding the repository and fixing GitHub access, which is all this PR covers. Linking a repository, starting onboarding and following its runs come in a follow-up PR on top of this one.
How
brainpod github auth(GET /v1/github/installations): likegh auth status. It shows the BrainPod GitHub App installations, whether each grants all or selected repositories, any permissions not yet accepted, and each installation's GitHub settings link. Connecting GitHub is a browser flow, so it prints the console connect link (<dashboard>/github/signin) instead of authenticating.brainpod github repos [QUERY](GET /v1/github/repositories): lists or searches repositories, with hints for granting a missing one. In--json,idandinstallationIdidentify the repository to link to a Pod.--jsonpasses the API response through and adds_links.connect.describemetadata and the README are updated.Depends on brainpodnl/brainpod#790.