mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Support copy protected branch from template repository (#25889)
Fix #14303
This commit is contained in:
@@ -107,6 +107,13 @@
|
||||
<label>{{.locale.Tr "repo.template.issue_labels"}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inline field">
|
||||
<label></label>
|
||||
<div class="ui checkbox">
|
||||
<input name="protected_branch" type="checkbox" tabindex="0" {{if .protected_branch}}checked{{end}}>
|
||||
<label>{{.locale.Tr "repo.settings.protected_branch"}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="non_template">
|
||||
|
5
templates/swagger/v1_json.tmpl
generated
5
templates/swagger/v1_json.tmpl
generated
@@ -18906,6 +18906,11 @@
|
||||
"type": "boolean",
|
||||
"x-go-name": "Private"
|
||||
},
|
||||
"protected_branch": {
|
||||
"description": "include protected branches in template repo",
|
||||
"type": "boolean",
|
||||
"x-go-name": "ProtectedBranch"
|
||||
},
|
||||
"topics": {
|
||||
"description": "include topics in template repo",
|
||||
"type": "boolean",
|
||||
|
Reference in New Issue
Block a user