add licenses to api.Repository

This commit is contained in:
yp05327 2023-05-31 02:54:36 +00:00
parent ef340f6628
commit 63a6da8867
2 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,7 @@ type Repository struct {
// swagger:strfmt date-time
MirrorUpdated time.Time `json:"mirror_updated,omitempty"`
RepoTransfer *RepoTransfer `json:"repo_transfer"`
Licenses []string `json:"licenses"`
}
// CreateRepoOption options when creating repository

View File

@ -208,6 +208,7 @@ func innerToRepo(ctx context.Context, repo *repo_model.Repository, mode perm.Acc
MirrorInterval: mirrorInterval,
MirrorUpdated: mirrorUpdated,
RepoTransfer: transfer,
Licenses: repo.Licenses,
}
}