diff options
Diffstat (limited to 'internal/form/repo.go')
-rw-r--r-- | internal/form/repo.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/form/repo.go b/internal/form/repo.go index 12b3a3ff..26acb2bf 100644 --- a/internal/form/repo.go +++ b/internal/form/repo.go @@ -26,6 +26,7 @@ type CreateRepo struct { UserID int64 `binding:"Required"` RepoName string `binding:"Required;AlphaDashDot;MaxSize(100)"` Private bool + Unlisted bool Description string `binding:"MaxSize(512)"` AutoInit bool Gitignores string @@ -45,6 +46,7 @@ type MigrateRepo struct { RepoName string `json:"repo_name" binding:"Required;AlphaDashDot;MaxSize(100)"` Mirror bool `json:"mirror"` Private bool `json:"private"` + Unlisted bool `json:"unlisted"` Description string `json:"description" binding:"MaxSize(512)"` } @@ -88,6 +90,7 @@ type RepoSetting struct { Interval int MirrorAddress string Private bool + Unlisted bool EnablePrune bool // Advanced settings |