Skip to content

Commit

Permalink
Add option include_all_branches to template repo request (#1884)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhaibing089 authored Jun 7, 2021
1 parent 8751f3d commit 773936a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
8 changes: 8 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion github/repos.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,8 @@ type TemplateRepoRequest struct {
Owner *string `json:"owner,omitempty"`
Description *string `json:"description,omitempty"`

Private *bool `json:"private,omitempty"`
IncludeAllBranches *bool `json:"include_all_branches,omitempty"`
Private *bool `json:"private,omitempty"`
}

// CreateFromTemplate generates a repository from a template.
Expand Down

0 comments on commit 773936a

Please sign in to comment.