Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88b13f9

Browse files
Introduce the auto merge property (google#2074)
Fixes: google#2073.
1 parent 756c36e commit 88b13f9

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

github/github-accessors.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-accessors_test.go

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-stringify_test.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/repos.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ type Repository struct {
6060
AllowRebaseMerge *bool `json:"allow_rebase_merge,omitempty"`
6161
AllowSquashMerge *bool `json:"allow_squash_merge,omitempty"`
6262
AllowMergeCommit *bool `json:"allow_merge_commit,omitempty"`
63+
AllowAutoMerge *bool `json:"allow_auto_merge,omitempty"`
6364
DeleteBranchOnMerge *bool `json:"delete_branch_on_merge,omitempty"`
6465
Topics []string `json:"topics,omitempty"`
6566
Archived *bool `json:"archived,omitempty"`
@@ -320,6 +321,7 @@ type createRepoRequest struct {
320321
AllowSquashMerge *bool `json:"allow_squash_merge,omitempty"`
321322
AllowMergeCommit *bool `json:"allow_merge_commit,omitempty"`
322323
AllowRebaseMerge *bool `json:"allow_rebase_merge,omitempty"`
324+
AllowAutoMerge *bool `json:"allow_auto_merge,omitempty"`
323325
DeleteBranchOnMerge *bool `json:"delete_branch_on_merge,omitempty"`
324326
}
325327

@@ -362,6 +364,7 @@ func (s *RepositoriesService) Create(ctx context.Context, org string, repo *Repo
362364
AllowSquashMerge: repo.AllowSquashMerge,
363365
AllowMergeCommit: repo.AllowMergeCommit,
364366
AllowRebaseMerge: repo.AllowRebaseMerge,
367+
AllowAutoMerge: repo.AllowAutoMerge,
365368
DeleteBranchOnMerge: repo.DeleteBranchOnMerge,
366369
}
367370

0 commit comments

Comments
 (0)