This commit is contained in:
pomidorry committed 2026-05-06 22:06:48 +03:00
1 parent de678aca06
commit 202a5644c8
2 files changed
+3 -3

No files matched your search

+2 -2
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
+1 -1
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()),
}
}