add last pull mirror sync success timestamp

This commit is contained in:
pomidorry
2026-05-06 16:45:51 +03:00
parent 35dfc6b9e1
commit 4415797c89
10 changed files with 104 additions and 2 deletions
+3 -1
View File
@@ -121,6 +121,9 @@ type Repository struct {
DefaultAllowMaintainerEdit bool `json:"default_allow_maintainer_edit"`
AvatarURL string `json:"avatar_url"`
Internal bool `json:"internal"`
// swagger:strfmt date-time
LastPullSyncSuccess time.Time `json:"last_pull_sync_success"`
Licenses []string `json:"licenses"`
MirrorInterval string `json:"mirror_interval"`
// ObjectFormatName of the underlying git repository
ObjectFormatName ObjectFormatName `json:"object_format_name"`
@@ -128,7 +131,6 @@ type Repository struct {
MirrorUpdated time.Time `json:"mirror_updated"`
RepoTransfer *RepoTransfer `json:"repo_transfer,omitempty"`
Topics []string `json:"topics"`
Licenses []string `json:"licenses"`
}
// CreateRepoOption options when creating repository