File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1092,6 +1092,9 @@ filter Set-GitHubRepository
1092
1092
. PARAMETER IsTemplate
1093
1093
Specifies whether the repository is made available as a template.
1094
1094
1095
+ . PARAMETER WebCommitSignoffRequired
1096
+ Specifies whether to require contributors to sign off on web-based commits.
1097
+
1095
1098
. PARAMETER Archived
1096
1099
Specify this to archive this repository.
1097
1100
NOTE: You cannot unarchive repositories through the API / this module.
@@ -1198,6 +1201,8 @@ filter Set-GitHubRepository
1198
1201
1199
1202
[switch ] $IsTemplate ,
1200
1203
1204
+ [switch ] $WebCommitSignoffRequired ,
1205
+
1201
1206
[switch ] $Archived ,
1202
1207
1203
1208
[switch ] $Force ,
@@ -1243,6 +1248,7 @@ filter Set-GitHubRepository
1243
1248
if ($PSBoundParameters.ContainsKey (' AllowUpdateBranch' )) { $hashBody [' allow_update_branch' ] = $AllowUpdateBranch.ToBool () }
1244
1249
if ($PSBoundParameters.ContainsKey (' DeleteBranchOnMerge' )) { $hashBody [' delete_branch_on_merge' ] = $DeleteBranchOnMerge.ToBool () }
1245
1250
if ($PSBoundParameters.ContainsKey (' IsTemplate' )) { $hashBody [' is_template' ] = $IsTemplate.ToBool () }
1251
+ if ($PSBoundParameters.ContainsKey (' WebCommitSignoffRequired' )) { $hashBody [' web_commit_signoff_required' ] = $WebCommitSignoffRequired.ToBool () }
1246
1252
if ($PSBoundParameters.ContainsKey (' Archived' )) { $hashBody [' archived' ] = $Archived.ToBool () }
1247
1253
1248
1254
if ($Force -and (-not $Confirm ))
Original file line number Diff line number Diff line change @@ -785,6 +785,7 @@ Describe 'GitHubRepositories\Set-GitHubRepository' {
785
785
AllowUpdateBranch = $true
786
786
DeleteBranchOnMerge = $true
787
787
IsTemplate = $true
788
+ WebCommitSignoffRequired = $true
788
789
}
789
790
790
791
$updatedRepo = Set-GitHubRepository @updateGithubRepositoryParms - PassThru
@@ -809,6 +810,7 @@ Describe 'GitHubRepositories\Set-GitHubRepository' {
809
810
$updatedRepo.allow_update_branch | Should - BeTrue
810
811
$updatedRepo.delete_branch_on_merge | Should - BeTrue
811
812
$updatedRepo.is_template | Should - BeTrue
813
+ $updatedRepo.web_commit_signoff_required | Should - BeTrue
812
814
}
813
815
}
814
816
You can’t perform that action at this time.
0 commit comments