Add MirrorUpdated field to Repository API type (#18267)

Add the last update time to the repository api type.

Close #18266
This commit is contained in:
Peter Gardfjäll 2022-01-18 14:18:30 +01:00 committed by GitHub
parent 68b59d8966
commit 89a3214352
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 1 deletions

View file

@ -93,7 +93,9 @@ type Repository struct {
AvatarURL string `json:"avatar_url"`
Internal bool `json:"internal"`
MirrorInterval string `json:"mirror_interval"`
RepoTransfer *RepoTransfer `json:"repo_transfer"`
// swagger:strfmt date-time
MirrorUpdated time.Time `json:"mirror_updated,omitempty"`
RepoTransfer *RepoTransfer `json:"repo_transfer"`
}
// CreateRepoOption options when creating repository