> ## 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.

# mesa.repos.list_upstream_syncs()

> List syncs for a repository's upstream.

List syncs for one repository's upstream, newest first.

```python theme={null}
result = await mesa.repos.list_upstream_syncs(repo="app", limit=20)

for sync in result.syncs:
    print(sync.direction, sync.status, sync.created_at)
```

## Options

<ParamField path="org" type="str | None">
  Organization override.
</ParamField>

<ParamField path="repo" type="str" required>
  Repository name.
</ParamField>

<ParamField path="cursor" type="str | None">
  Opaque pagination cursor from a previous response.
</ParamField>

<ParamField path="limit" type="int | None">
  Maximum number of syncs to return. The server maximum is `100`.
</ParamField>

## Response

<ResponseField name="next_cursor" type="str | None">
  Cursor for the next page, or `None` when no more results remain.
</ResponseField>

<ResponseField name="has_more" type="bool">
  Whether another page is available.
</ResponseField>

<ResponseField name="syncs" type="list">
  Sync objects with `id`, `repo_id`, `direction`, `status`, `attempt`, `stats`, `error`, `created_at`, `started_at`, and `finished_at`.
</ResponseField>

## Required scope

`read`
