Skip to main content
Fetch a repository by name. Required scope: read
repo = await mesa.repos.get(repo="app")
print(repo.id)
print(repo.default_bookmark)

Options

repo
str
required
Repository name.
org
str | None
Organization override.

Response

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

UpstreamConfig

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

Errors

Raises NotFoundError when the repository does not exist.