Expose last mirror sync timestamp through the API #18266
Labels
modifies/api
This PR adds API routes or modifies them
type/feature
Completely new functionality. Can only be merged if feature freeze is not active.
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 byGET /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).
The text was updated successfully, but these errors were encountered: