0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-12 00:22:59 +02:00
This commit is contained in:
pomidorry 2026-05-08 21:16:54 +03:00
parent 03faefc4d1
commit d765cb2aec
4 changed files with 12 additions and 12 deletions

View File

@ -127,7 +127,7 @@ type Repository struct {
// swagger:strfmt date-time
MirrorUpdated time.Time `json:"mirror_updated"`
// swagger:strfmt date-time
LastSync time.Time `json:"last_sync"`
MirrorLastSyncAt time.Time `json:"mirror_last_sync_at"`
RepoTransfer *RepoTransfer `json:"repo_transfer,omitempty"`
Topics []string `json:"topics"`
Licenses []string `json:"licenses"`

View File

@ -249,7 +249,7 @@ func innerToRepo(ctx context.Context, repo *repo_model.Repository, permissionInR
DefaultTargetBranch: defaultTargetBranch,
AvatarURL: repo.AvatarLink(ctx),
Internal: !repo.IsPrivate && repo.Owner.Visibility == api.VisibleTypePrivate,
LastSync: lastSync,
MirrorLastSyncAt: lastSync,
MirrorInterval: mirrorInterval,
MirrorUpdated: mirrorUpdated,
RepoTransfer: transfer,

View File

@ -29020,11 +29020,6 @@
"type": "string",
"x-go-name": "LanguagesURL"
},
"last_sync": {
"type": "string",
"format": "date-time",
"x-go-name": "LastSync"
},
"licenses": {
"type": "array",
"items": {
@ -29044,6 +29039,11 @@
"type": "string",
"x-go-name": "MirrorInterval"
},
"mirror_last_sync_at": {
"type": "string",
"format": "date-time",
"x-go-name": "MirrorLastSyncAt"
},
"mirror_updated": {
"type": "string",
"format": "date-time",

View File

@ -9273,11 +9273,6 @@
"type": "string",
"x-go-name": "LanguagesURL"
},
"last_sync": {
"format": "date-time",
"type": "string",
"x-go-name": "LastSync"
},
"licenses": {
"items": {
"type": "string"
@ -9297,6 +9292,11 @@
"type": "string",
"x-go-name": "MirrorInterval"
},
"mirror_last_sync_at": {
"format": "date-time",
"type": "string",
"x-go-name": "MirrorLastSyncAt"
},
"mirror_updated": {
"format": "date-time",
"type": "string",