Skip to content

Expose last mirror sync timestamp through the API #18266

Closed
@petergardfjall

Description

@petergardfjall

Feature Description

One can queue up a sync operation for a mirror repo via POST /api/v1/{owner}/{repo}/mirror-sync.
However, there is no way for an API client of learning of completion (the UI does expose this information in the Last update mirror setting field, but not the REST API).

This issue proposes to add a mirror_updated field to the repository type (as returned by GET /api/v1/{owner}/{repo}).
For example, this allows API clients to determine if an initiated sync has completed, or take decisions on if a mirror repo should be synced (given some client-side policy on freshness).

Metadata

Metadata

Assignees

No one assigned

    Labels

    modifies/apiThis PR adds API routes or modifies themtype/featureCompletely new functionality. Can only be merged if feature freeze is not active.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions