diff options
author | Abheek Dhawan <67982792+ADawesomeguy@users.noreply.github.com> | 2022-03-26 21:56:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-27 03:56:28 +0100 |
commit | f3165824585b55c0bd75cb4f46120fca8b4ace9f (patch) | |
tree | 94642f20ab8dd1b226e2f9077e790795f1229a0c /templates/swagger | |
parent | 71a5aaef32298fd0e82ad9d1549fd38d0eb08352 (diff) | |
download | gitea-f3165824585b55c0bd75cb4f46120fca8b4ace9f.tar.gz gitea-f3165824585b55c0bd75cb4f46120fca8b4ace9f.zip |
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>
Diffstat (limited to 'templates/swagger')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 1aec9ec06f..284e1c71a0 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -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", |