update CreateRepoOption struct (#300)

updates from https://github.com/go-gitea/gitea/pull/10803

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/300
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: mrsdizzie <info@mrsdizzie.com>
This commit is contained in:
6543 2020-04-01 02:59:16 +00:00
parent 8045079a7a
commit 8cad1a92d7

View file

@ -177,6 +177,8 @@ type CreateRepoOption struct {
License string `json:"license"` License string `json:"license"`
// Readme of the repository to create // Readme of the repository to create
Readme string `json:"readme"` Readme string `json:"readme"`
// DefaultBranch of the repository (used when initializes and in template)
DefaultBranch string `json:"default_branch"`
} }
// CreateRepo creates a repository for authenticated user. // CreateRepo creates a repository for authenticated user.