Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mesa.dev/llms.txt

Use this file to discover all available pages before exploring further.

List syncs for one repository’s upstream, newest first.
const { syncs, next_cursor, has_more } = await mesa.repos.listUpstreamSyncs({
  repo: 'app',
  limit: 20,
});

for (const sync of syncs) {
  console.log(sync.direction, sync.status, sync.created_at);
}

Options

org
string | undefined
Organization override.
repo
string
required
Repository name.
cursor
string | undefined
Opaque pagination cursor from a previous response.
limit
number | undefined
Maximum number of syncs to return. The server maximum is 100.

Response

next_cursor
string | null
Cursor for the next page, or null when no more results remain.
has_more
boolean
Whether another page is available.
syncs
array
Sync objects with id, repo_id, direction, status, attempt, stats, error, created_at, started_at, and finished_at.

Required scope

read