Skip to main content
Fetch one repository in the current or specified organization. Required scope: read
const repo = await mesa.repos.get({ repo: 'app' });
console.log(repo.id, repo.head_change_id);

Options

repo
string
required
Repository name.
org
string | undefined
Organization override.

Response

id
string
Repository ID.
org
string
Organization slug.
name
string
Repository name.
default_bookmark
string
Default bookmark name.
head_change_id
string
Current change ID at the default bookmark tip.
upstream
UpstreamConfig | null
Configured upstream remote, or null when no upstream is configured.
created_at
string
Creation time.
tags
Record<string, string>
Repository tags.

UpstreamConfig

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