@@ -89,6 +89,10 @@ filter New-GitHubRepository
89
89
. PARAMETER AllowAutoMerge
90
90
Specifies whether to allow auto-merge on pull requests.
91
91
92
+ . PARAMETER AllowUpdateBranch
93
+ Specifies whether to always allow a pull request head branch that is behind its base branch
94
+ to be updated even if it is not required to be up-to-date before merging.
95
+
92
96
. PARAMETER DeleteBranchOnMerge
93
97
Specifies the automatic deleting of head branches when pull requests are merged.
94
98
@@ -170,6 +174,8 @@ filter New-GitHubRepository
170
174
171
175
[switch ] $AllowAutoMerge ,
172
176
177
+ [switch ] $AllowUpdateBranch ,
178
+
173
179
[switch ] $DeleteBranchOnMerge ,
174
180
175
181
[switch ] $IsTemplate ,
@@ -217,6 +223,7 @@ filter New-GitHubRepository
217
223
if ($PSBoundParameters.ContainsKey (' DisallowMergeCommit' )) { $hashBody [' allow_merge_commit' ] = (-not $DisallowMergeCommit.ToBool ()) }
218
224
if ($PSBoundParameters.ContainsKey (' DisallowRebaseMerge' )) { $hashBody [' allow_rebase_merge' ] = (-not $DisallowRebaseMerge.ToBool ()) }
219
225
if ($PSBoundParameters.ContainsKey (' AllowAutoMerge' )) { $hashBody [' allow_auto_merge' ] = $AllowAutoMerge.ToBool () }
226
+ if ($PSBoundParameters.ContainsKey (' AllowUpdateBranch' )) { $hashBody [' allow_update_branch' ] = $AllowUpdateBranch.ToBool () }
220
227
if ($PSBoundParameters.ContainsKey (' DeleteBranchOnMerge' )) { $hashBody [' delete_branch_on_merge' ] = $DeleteBranchOnMerge.ToBool () }
221
228
if ($PSBoundParameters.ContainsKey (' IsTemplate' )) { $hashBody [' is_template' ] = $IsTemplate.ToBool () }
222
229
@@ -1075,6 +1082,10 @@ filter Set-GitHubRepository
1075
1082
. PARAMETER AllowAutoMerge
1076
1083
Specifies whether to allow auto-merge on pull requests.
1077
1084
1085
+ . PARAMETER AllowUpdateBranch
1086
+ Specifies whether to always allow a pull request head branch that is behind its base branch
1087
+ to be updated even if it is not required to be up-to-date before merging.
1088
+
1078
1089
. PARAMETER DeleteBranchOnMerge
1079
1090
Specifies the automatic deleting of head branches when pull requests are merged.
1080
1091
@@ -1181,6 +1192,8 @@ filter Set-GitHubRepository
1181
1192
1182
1193
[switch ] $AllowAutoMerge ,
1183
1194
1195
+ [switch ] $AllowUpdateBranch ,
1196
+
1184
1197
[switch ] $DeleteBranchOnMerge ,
1185
1198
1186
1199
[switch ] $IsTemplate ,
@@ -1227,6 +1240,7 @@ filter Set-GitHubRepository
1227
1240
if ($PSBoundParameters.ContainsKey (' DisallowMergeCommit' )) { $hashBody [' allow_merge_commit' ] = (-not $DisallowMergeCommit.ToBool ()) }
1228
1241
if ($PSBoundParameters.ContainsKey (' DisallowRebaseMerge' )) { $hashBody [' allow_rebase_merge' ] = (-not $DisallowRebaseMerge.ToBool ()) }
1229
1242
if ($PSBoundParameters.ContainsKey (' AllowAutoMerge' )) { $hashBody [' allow_auto_merge' ] = $AllowAutoMerge.ToBool () }
1243
+ if ($PSBoundParameters.ContainsKey (' AllowUpdateBranch' )) { $hashBody [' allow_update_branch' ] = $AllowUpdateBranch.ToBool () }
1230
1244
if ($PSBoundParameters.ContainsKey (' DeleteBranchOnMerge' )) { $hashBody [' delete_branch_on_merge' ] = $DeleteBranchOnMerge.ToBool () }
1231
1245
if ($PSBoundParameters.ContainsKey (' IsTemplate' )) { $hashBody [' is_template' ] = $IsTemplate.ToBool () }
1232
1246
if ($PSBoundParameters.ContainsKey (' Archived' )) { $hashBody [' archived' ] = $Archived.ToBool () }
0 commit comments