aboutsummaryrefslogtreecommitdiffstats
path: root/modules/structs/repo.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-07-21 12:32:47 +0800
committerGitHub <noreply@github.com>2023-07-21 12:32:47 +0800
commit037c9895a7406b42f88991295382db18f98dbef9 (patch)
treed3d893d77c082f629219d386c9cf6a45dc958f84 /modules/structs/repo.go
parent2b6f2243366b6640a4a322b33b419445c710cba9 (diff)
downloadgitea-037c9895a7406b42f88991295382db18f98dbef9.tar.gz
gitea-037c9895a7406b42f88991295382db18f98dbef9.zip
Support copy protected branch from template repository (#25889)
Fix #14303
Diffstat (limited to 'modules/structs/repo.go')
-rw-r--r--modules/structs/repo.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/structs/repo.go b/modules/structs/repo.go
index af439ad730..6a2ba4836b 100644
--- a/modules/structs/repo.go
+++ b/modules/structs/repo.go
@@ -238,6 +238,8 @@ type GenerateRepoOption struct {
Avatar bool `json:"avatar"`
// include labels in template repo
Labels bool `json:"labels"`
+ // include protected branches in template repo
+ ProtectedBranch bool `json:"protected_branch"`
}
// CreateBranchRepoOption options when creating a branch in a repository