@@ -83,6 +83,13 @@ filter New-GitHubRepository
8383 By default, rebase-merge pull requests will be allowed.
8484 Specify this to disallow.
8585
86+ . PARAMETER AllowAutoMerge
87+ Specifies whether to allow auto-merge on pull requests.
88+
89+ . PARAMETER UseSquashPrTitleAsDefault
90+ Specifies whether to use the pull request title for squash-merge commits rather than the
91+ commit message.
92+
8693 . PARAMETER DeleteBranchOnMerge
8794 Specifies the automatic deleting of head branches when pull requests are merged.
8895
@@ -160,6 +167,10 @@ filter New-GitHubRepository
160167
161168 [switch ] $DisallowRebaseMerge ,
162169
170+ [switch ] $AllowAutoMerge ,
171+
172+ [switch ] $UseSquashPrTitleAsDefault ,
173+
163174 [switch ] $DeleteBranchOnMerge ,
164175
165176 [switch ] $IsTemplate ,
@@ -205,6 +216,8 @@ filter New-GitHubRepository
205216 if ($PSBoundParameters.ContainsKey (' DisallowSquashMerge' )) { $hashBody [' allow_squash_merge' ] = (-not $DisallowSquashMerge.ToBool ()) }
206217 if ($PSBoundParameters.ContainsKey (' DisallowMergeCommit' )) { $hashBody [' allow_merge_commit' ] = (-not $DisallowMergeCommit.ToBool ()) }
207218 if ($PSBoundParameters.ContainsKey (' DisallowRebaseMerge' )) { $hashBody [' allow_rebase_merge' ] = (-not $DisallowRebaseMerge.ToBool ()) }
219+ if ($PSBoundParameters.ContainsKey (' AllowAutoMerge' )) { $hashBody [' allow_auto_merge' ] = $AllowAutoMerge.ToBool () }
220+ if ($PSBoundParameters.ContainsKey (' UseSquashPrTitleAsDefault' )) { $hashBody [' use_squash_pr_title_as_default' ] = $UseSquashPrTitleAsDefault.ToBool () }
208221 if ($PSBoundParameters.ContainsKey (' DeleteBranchOnMerge' )) { $hashBody [' delete_branch_on_merge' ] = $DeleteBranchOnMerge.ToBool () }
209222 if ($PSBoundParameters.ContainsKey (' IsTemplate' )) { $hashBody [' is_template' ] = $IsTemplate.ToBool () }
210223
@@ -1057,6 +1070,13 @@ filter Set-GitHubRepository
10571070 By default, rebase-merge pull requests will be allowed.
10581071 Specify this to disallow.
10591072
1073+ . PARAMETER AllowAutoMerge
1074+ Specifies whether to allow auto-merge on pull requests.
1075+
1076+ . PARAMETER UseSquashPrTitleAsDefault
1077+ Specifies whether to use the pull request title for squash-merge commits rather than the
1078+ commit message.
1079+
10601080 . PARAMETER DeleteBranchOnMerge
10611081 Specifies the automatic deleting of head branches when pull requests are merged.
10621082
@@ -1159,6 +1179,10 @@ filter Set-GitHubRepository
11591179
11601180 [switch ] $DisallowRebaseMerge ,
11611181
1182+ [switch ] $AllowAutoMerge ,
1183+
1184+ [switch ] $UseSquashPrTitleAsDefault ,
1185+
11621186 [switch ] $DeleteBranchOnMerge ,
11631187
11641188 [switch ] $IsTemplate ,
@@ -1203,6 +1227,8 @@ filter Set-GitHubRepository
12031227 if ($PSBoundParameters.ContainsKey (' DisallowSquashMerge' )) { $hashBody [' allow_squash_merge' ] = (-not $DisallowSquashMerge.ToBool ()) }
12041228 if ($PSBoundParameters.ContainsKey (' DisallowMergeCommit' )) { $hashBody [' allow_merge_commit' ] = (-not $DisallowMergeCommit.ToBool ()) }
12051229 if ($PSBoundParameters.ContainsKey (' DisallowRebaseMerge' )) { $hashBody [' allow_rebase_merge' ] = (-not $DisallowRebaseMerge.ToBool ()) }
1230+ if ($PSBoundParameters.ContainsKey (' AllowAutoMerge' )) { $hashBody [' allow_auto_merge' ] = $AllowAutoMerge.ToBool () }
1231+ if ($PSBoundParameters.ContainsKey (' UseSquashPrTitleAsDefault' )) { $hashBody [' use_squash_pr_title_as_default' ] = $UseSquashPrTitleAsDefault.ToBool () }
12061232 if ($PSBoundParameters.ContainsKey (' DeleteBranchOnMerge' )) { $hashBody [' delete_branch_on_merge' ] = $DeleteBranchOnMerge.ToBool () }
12071233 if ($PSBoundParameters.ContainsKey (' IsTemplate' )) { $hashBody [' is_template' ] = $IsTemplate.ToBool () }
12081234 if ($PSBoundParameters.ContainsKey (' Archived' )) { $hashBody [' archived' ] = $Archived.ToBool () }
0 commit comments