Skip to main content
Fetch a repository by name. Required scope: read

Options

str
required
Repository name.
str | None
Organization override.

Response

str
Repository ID.
str
Organization slug.
str
Repository name.
str
Default bookmark name.
str
Current change ID at the default bookmark tip.
UpstreamConfig | None
Configured upstream remote, or null when no upstream is configured.
datetime
Creation time.
dict[str, str]
Repository tags.

UpstreamConfig

str
Upstream Git remote URL.
'token' | 'username_password' | None
Stored upstream authentication kind, or null when the upstream is public.

Errors

Raises NotFoundError when the repository does not exist.