From 8cad1a92d7c284728d78b39e1f4ea0fb1c2603fb Mon Sep 17 00:00:00 2001 From: 6543 <6543@noreply.gitea.io> Date: Wed, 1 Apr 2020 02:59:16 +0000 Subject: [PATCH] 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 Reviewed-by: mrsdizzie --- gitea/repo.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitea/repo.go b/gitea/repo.go index 309702e..80f24b8 100644 --- a/gitea/repo.go +++ b/gitea/repo.go @@ -177,6 +177,8 @@ type CreateRepoOption struct { License string `json:"license"` // Readme of the repository to create 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.