mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-14 13:08:11 +02:00
naming
This commit is contained in:
parent
03faefc4d1
commit
d765cb2aec
@ -127,7 +127,7 @@ type Repository struct {
|
|||||||
// swagger:strfmt date-time
|
// swagger:strfmt date-time
|
||||||
MirrorUpdated time.Time `json:"mirror_updated"`
|
MirrorUpdated time.Time `json:"mirror_updated"`
|
||||||
// swagger:strfmt date-time
|
// swagger:strfmt date-time
|
||||||
LastSync time.Time `json:"last_sync"`
|
MirrorLastSyncAt time.Time `json:"mirror_last_sync_at"`
|
||||||
RepoTransfer *RepoTransfer `json:"repo_transfer,omitempty"`
|
RepoTransfer *RepoTransfer `json:"repo_transfer,omitempty"`
|
||||||
Topics []string `json:"topics"`
|
Topics []string `json:"topics"`
|
||||||
Licenses []string `json:"licenses"`
|
Licenses []string `json:"licenses"`
|
||||||
|
|||||||
@ -249,7 +249,7 @@ func innerToRepo(ctx context.Context, repo *repo_model.Repository, permissionInR
|
|||||||
DefaultTargetBranch: defaultTargetBranch,
|
DefaultTargetBranch: defaultTargetBranch,
|
||||||
AvatarURL: repo.AvatarLink(ctx),
|
AvatarURL: repo.AvatarLink(ctx),
|
||||||
Internal: !repo.IsPrivate && repo.Owner.Visibility == api.VisibleTypePrivate,
|
Internal: !repo.IsPrivate && repo.Owner.Visibility == api.VisibleTypePrivate,
|
||||||
LastSync: lastSync,
|
MirrorLastSyncAt: lastSync,
|
||||||
MirrorInterval: mirrorInterval,
|
MirrorInterval: mirrorInterval,
|
||||||
MirrorUpdated: mirrorUpdated,
|
MirrorUpdated: mirrorUpdated,
|
||||||
RepoTransfer: transfer,
|
RepoTransfer: transfer,
|
||||||
|
|||||||
10
templates/swagger/v1_json.tmpl
generated
10
templates/swagger/v1_json.tmpl
generated
@ -29020,11 +29020,6 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"x-go-name": "LanguagesURL"
|
"x-go-name": "LanguagesURL"
|
||||||
},
|
},
|
||||||
"last_sync": {
|
|
||||||
"type": "string",
|
|
||||||
"format": "date-time",
|
|
||||||
"x-go-name": "LastSync"
|
|
||||||
},
|
|
||||||
"licenses": {
|
"licenses": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
@ -29044,6 +29039,11 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"x-go-name": "MirrorInterval"
|
"x-go-name": "MirrorInterval"
|
||||||
},
|
},
|
||||||
|
"mirror_last_sync_at": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time",
|
||||||
|
"x-go-name": "MirrorLastSyncAt"
|
||||||
|
},
|
||||||
"mirror_updated": {
|
"mirror_updated": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "date-time",
|
"format": "date-time",
|
||||||
|
|||||||
@ -9273,11 +9273,6 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"x-go-name": "LanguagesURL"
|
"x-go-name": "LanguagesURL"
|
||||||
},
|
},
|
||||||
"last_sync": {
|
|
||||||
"format": "date-time",
|
|
||||||
"type": "string",
|
|
||||||
"x-go-name": "LastSync"
|
|
||||||
},
|
|
||||||
"licenses": {
|
"licenses": {
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@ -9297,6 +9292,11 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"x-go-name": "MirrorInterval"
|
"x-go-name": "MirrorInterval"
|
||||||
},
|
},
|
||||||
|
"mirror_last_sync_at": {
|
||||||
|
"format": "date-time",
|
||||||
|
"type": "string",
|
||||||
|
"x-go-name": "MirrorLastSyncAt"
|
||||||
|
},
|
||||||
"mirror_updated": {
|
"mirror_updated": {
|
||||||
"format": "date-time",
|
"format": "date-time",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user