Support copy protected branch from template repository (#25889)

Fix #14303
This commit is contained in:
Lunny Xiao authored and GitHub committed 2023-07-21 12:32:47 +08:00
1 parent 2b6f224336
commit 037c9895a7
8 files changed
+86 -38

No files matched your search

+9 -8
View File
@@ -42,14 +42,15 @@ type CreateRepoForm struct {
Readme string
Template bool
RepoTemplate int64
GitContent bool
Topics bool
GitHooks bool
Webhooks bool
Avatar bool
Labels bool
TrustModel string
RepoTemplate int64
GitContent bool
Topics bool
GitHooks bool
Webhooks bool
Avatar bool
Labels bool
ProtectedBranch bool
TrustModel string
}
// Validate validates the fields