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-06 22:06:48 +03:00
parent de678aca06
commit 202a5644c8
2 changed files with 3 additions and 3 deletions

View File

@ -121,7 +121,7 @@ type Repository struct {
DefaultAllowMaintainerEdit bool `json:"default_allow_maintainer_edit"`
AvatarURL string `json:"avatar_url"`
Internal bool `json:"internal"`
MirrorInterval string `json:"mirror_interval"`
MirrorInterval string `json:"mirror_interval"`
// ObjectFormatName of the underlying git repository
ObjectFormatName ObjectFormatName `json:"object_format_name"`
// swagger:strfmt date-time
@ -130,7 +130,7 @@ type Repository struct {
LastPullSyncSuccess time.Time `json:"last_pull_sync_success"`
RepoTransfer *RepoTransfer `json:"repo_transfer,omitempty"`
Topics []string `json:"topics"`
Licenses []string `json:"licenses"`
Licenses []string `json:"licenses"`
}
// CreateRepoOption options when creating repository

View File

@ -248,12 +248,12 @@ func innerToRepo(ctx context.Context, repo *repo_model.Repository, permissionInR
AvatarURL: repo.AvatarLink(ctx),
Internal: !repo.IsPrivate && repo.Owner.Visibility == api.VisibleTypePrivate,
LastPullSyncSuccess: repo.LastPullSyncSuccessUnix.AsTime(),
Licenses: util.SliceNilAsEmpty(repoLicenses.StringList()),
MirrorInterval: mirrorInterval,
MirrorUpdated: mirrorUpdated,
RepoTransfer: transfer,
Topics: util.SliceNilAsEmpty(repo.Topics),
ObjectFormatName: api.ObjectFormatName(repo.ObjectFormatName),
Licenses: util.SliceNilAsEmpty(repoLicenses.StringList()),
}
}