Skip to content

Commit 8cad1a9

Browse files
65436543
6543
andcommitted
update CreateRepoOption struct (#300)
updates from go-gitea/gitea#10803 Co-authored-by: 6543 <[email protected]> Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/300 Reviewed-by: Lunny Xiao <[email protected]> Reviewed-by: mrsdizzie <[email protected]>
1 parent 8045079 commit 8cad1a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gitea/repo.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ type CreateRepoOption struct {
177177
License string `json:"license"`
178178
// Readme of the repository to create
179179
Readme string `json:"readme"`
180+
// DefaultBranch of the repository (used when initializes and in template)
181+
DefaultBranch string `json:"default_branch"`
180182
}
181183

182184
// CreateRepo creates a repository for authenticated user.

0 commit comments

Comments
 (0)