Skip to main content
Enqueue a sync for the configured upstream remote.

Options

string
required
Repository name.
'pull' | 'push'
required
pull fetches from upstream into Mesa. push sends Mesa branches and tags to upstream.
{ branches?: string; tags?: string } | undefined
Branch and tag glob filters for this sync. Omit this field to sync all supported branches and tags. If provided, include at least one of branches or tags.
string
Glob matched against upstream branch names, such as main, release/*, or *. Omit or use an empty string to match no branches. Do not include refs/heads/.
string
Glob matched against upstream tag names, such as v1.* or *. Omit or use an empty string to match no tags. Do not include refs/tags/.

Response

Returns a sync object with fields such as id, repo_id, direction, status, attempt, ref_globs, stats, error, created_at, started_at, and finished_at. ref_globs is returned as normalized branch and tag glob filters. stats.refs contains only source refs that matched the filters.

Required scope

write