From c4360747a3bdd0d5a5a673bfcdee05f9d911ba1e Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Thu, 3 Sep 2020 21:04:22 +0200 Subject: repo: support unlisted but publicly accessible repositories (#6176) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: ᴜɴᴋɴᴡᴏɴ --- internal/form/repo.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/form/repo.go') 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 -- cgit v1.2.3