summaryrefslogtreecommitdiffstats
path: root/modules/auth
diff options
context:
space:
mode:
Diffstat (limited to 'modules/auth')
-rw-r--r--modules/auth/repo_form.go19
1 files changed, 10 insertions, 9 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go
index 63a560728a..84ab35f649 100644
--- a/modules/auth/repo_form.go
+++ b/modules/auth/repo_form.go
@@ -27,15 +27,16 @@ import (
// CreateRepoForm form for creating repository
type CreateRepoForm struct {
- UID int64 `binding:"Required"`
- RepoName string `binding:"Required;AlphaDashDot;MaxSize(100)"`
- Private bool
- Description string `binding:"MaxSize(255)"`
- AutoInit bool
- Gitignores string
- IssueLabels string
- License string
- Readme string
+ UID int64 `binding:"Required"`
+ RepoName string `binding:"Required;AlphaDashDot;MaxSize(100)"`
+ Private bool
+ Description string `binding:"MaxSize(255)"`
+ DefaultBranch string `binding:"GitRefName;MaxSize(100)"`
+ AutoInit bool
+ Gitignores string
+ IssueLabels string
+ License string
+ Readme string
RepoTemplate int64
GitContent bool