mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-22 14:08:01 +02:00
Option to set default branch at repository creation (#10803)
* Option to set default branch at repository creation * Handle template repos with non-default master branch * Add DefaultBranch handling on creation to API Fix #9542 Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
@ -10600,6 +10600,11 @@
|
||||
"type": "boolean",
|
||||
"x-go-name": "AutoInit"
|
||||
},
|
||||
"default_branch": {
|
||||
"description": "DefaultBranch of the repository (used when initializes and in template)",
|
||||
"type": "string",
|
||||
"x-go-name": "DefaultBranch"
|
||||
},
|
||||
"description": {
|
||||
"description": "Description of the repository to create",
|
||||
"type": "string",
|
||||
|
Reference in New Issue
Block a user