forked from forgejo/forgejo
Set the default branch for repositories generated from templates (#19136)
* Set the default branch for repositories generated from templates * Allows default branch to be set through the API for repos generated from templates * Update swagger API template * Only set default branch to the one from the template if not specified * Use specified default branch if it exists while generating git commits Fix #19082 Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
parent
71a5aaef32
commit
f316582458
5 changed files with 40 additions and 20 deletions
|
@ -15412,6 +15412,11 @@
|
|||
"type": "boolean",
|
||||
"x-go-name": "Avatar"
|
||||
},
|
||||
"default_branch": {
|
||||
"description": "Default branch of the new repository",
|
||||
"type": "string",
|
||||
"x-go-name": "DefaultBranch"
|
||||
},
|
||||
"description": {
|
||||
"description": "Description of the repository to create",
|
||||
"type": "string",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue