aboutsummaryrefslogtreecommitdiffstats
path: root/services/forms
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2023-03-13 21:28:39 +0100
committerGitHub <noreply@github.com>2023-03-13 15:28:39 -0500
commitc709fa17a77eae391cafbe72d6b2594f74d86a60 (patch)
tree9c6ab67126c7d59a6db274ec5a9f75cdfe120be6 /services/forms
parent0a6f6354bbc03d4a3ad382a432113301e9ea9d86 (diff)
downloadgitea-c709fa17a77eae391cafbe72d6b2594f74d86a60.tar.gz
gitea-c709fa17a77eae391cafbe72d6b2594f74d86a60.zip
Add Swift package registry (#22404)
This PR adds a [Swift](https://www.swift.org/) package registry. ![grafik](https://user-images.githubusercontent.com/1666336/211842523-07521cbd-8fb6-400f-820c-ee8048b05ae8.png)
Diffstat (limited to 'services/forms')
-rw-r--r--services/forms/package_form.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/forms/package_form.go b/services/forms/package_form.go
index b22ed47c77..699d0fe44f 100644
--- a/services/forms/package_form.go
+++ b/services/forms/package_form.go
@@ -15,7 +15,7 @@ import (
type PackageCleanupRuleForm struct {
ID int64
Enabled bool
- Type string `binding:"Required;In(cargo,chef,composer,conan,conda,container,generic,helm,maven,npm,nuget,pub,pypi,rubygems,vagrant)"`
+ Type string `binding:"Required;In(cargo,chef,composer,conan,conda,container,generic,helm,maven,npm,nuget,pub,pypi,rubygems,swift,vagrant)"`
KeepCount int `binding:"In(0,1,5,10,25,50,100)"`
KeepPattern string `binding:"RegexPattern"`
RemoveDays int `binding:"In(0,7,14,30,60,90,180)"`