@@ -19,6 +19,7 @@ import (
19
19
packages_module "code.gitea.io/gitea/modules/packages"
20
20
helm_module "code.gitea.io/gitea/modules/packages/helm"
21
21
"code.gitea.io/gitea/modules/setting"
22
+ "code.gitea.io/gitea/modules/util"
22
23
"code.gitea.io/gitea/routers/api/packages/helper"
23
24
packages_service "code.gitea.io/gitea/services/packages"
24
25
@@ -39,8 +40,9 @@ func apiError(ctx *context.Context, status int, obj interface{}) {
39
40
// Index generates the Helm charts index
40
41
func Index (ctx * context.Context ) {
41
42
pvs , _ , err := packages_model .SearchVersions (ctx , & packages_model.PackageSearchOptions {
42
- OwnerID : ctx .Package .Owner .ID ,
43
- Type : packages_model .TypeHelm ,
43
+ OwnerID : ctx .Package .Owner .ID ,
44
+ Type : packages_model .TypeHelm ,
45
+ IsInternal : util .OptionalBoolFalse ,
44
46
})
45
47
if err != nil {
46
48
apiError (ctx , http .StatusInternalServerError , err )
@@ -108,6 +110,7 @@ func DownloadPackageFile(ctx *context.Context) {
108
110
Value : ctx .Params ("package" ),
109
111
},
110
112
HasFileWithName : filename ,
113
+ IsInternal : util .OptionalBoolFalse ,
111
114
})
112
115
if err != nil {
113
116
apiError (ctx , http .StatusInternalServerError , err )
0 commit comments