diff options
author | Achilleas Koutsou <achilleas.k@gmail.com> | 2020-09-03 21:04:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 03:04:22 +0800 |
commit | c4360747a3bdd0d5a5a673bfcdee05f9d911ba1e (patch) | |
tree | 4c8ca23dc3f449bc946b6c75c0fec8dd928dbb73 /internal/form/repo.go | |
parent | 23ff182d1f8df2978785772bc58cf0ebfd2aeb0c (diff) |
repo: support unlisted but publicly accessible repositories (#6176)
Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
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 |