BBC2-19 add bb repo view#25
Open
b2l wants to merge 1 commit into
Open
Conversation
New `bb repo view [workspace/repo]` that fetches a single repository via
GET /repositories/{workspace}/{repo_slug} and shows name, owner,
visibility, default branch, primary language, creation/update timestamps,
URL, and description.
Defaults to the auto-detected repo; a positional argument overrides
(same semantics as -R). If both are passed, the positional wins — users
type `bb repo view some/repo` and expect it to act on `some/repo`
without learning which flag takes priority.
Adds a new src/backend/repositories/ module with the Repository shape
and RepositoryError class, mirroring the pullrequests backend pattern.
The generated `repository` schema nests optionals several layers deep;
toRepository flattens to a surface the renderer can consume without
optional-chain gymnastics.
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
bb repo view [workspace/repo]that fetches a single repository viaGET /repositories/{workspace}/{repo_slug}and shows name, owner, visibility, default branch, primary language, creation/update timestamps, URL, and description.-Ris also accepted for consistency. If both are passed, the positional wins — matches howgh repo viewbehaves.src/backend/repositories/module with theRepositoryshape andRepositoryErrorclass, mirroring the pullrequests backend pattern.Test plan
Manual test path
Closes BBC2-19.