File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1092,6 +1092,9 @@ filter Set-GitHubRepository
10921092 . PARAMETER IsTemplate
10931093 Specifies whether the repository is made available as a template.
10941094
1095+ . PARAMETER WebCommitSignoffRequired
1096+ Specifies whether to require contributors to sign off on web-based commits.
1097+
10951098 . PARAMETER Archived
10961099 Specify this to archive this repository.
10971100 NOTE: You cannot unarchive repositories through the API / this module.
@@ -1198,6 +1201,8 @@ filter Set-GitHubRepository
11981201
11991202 [switch ] $IsTemplate ,
12001203
1204+ [switch ] $WebCommitSignoffRequired ,
1205+
12011206 [switch ] $Archived ,
12021207
12031208 [switch ] $Force ,
@@ -1243,6 +1248,7 @@ filter Set-GitHubRepository
12431248 if ($PSBoundParameters.ContainsKey (' AllowUpdateBranch' )) { $hashBody [' allow_update_branch' ] = $AllowUpdateBranch.ToBool () }
12441249 if ($PSBoundParameters.ContainsKey (' DeleteBranchOnMerge' )) { $hashBody [' delete_branch_on_merge' ] = $DeleteBranchOnMerge.ToBool () }
12451250 if ($PSBoundParameters.ContainsKey (' IsTemplate' )) { $hashBody [' is_template' ] = $IsTemplate.ToBool () }
1251+ if ($PSBoundParameters.ContainsKey (' WebCommitSignoffRequired' )) { $hashBody [' web_commit_signoff_required' ] = $WebCommitSignoffRequired.ToBool () }
12461252 if ($PSBoundParameters.ContainsKey (' Archived' )) { $hashBody [' archived' ] = $Archived.ToBool () }
12471253
12481254 if ($Force -and (-not $Confirm ))
Original file line number Diff line number Diff line change @@ -785,6 +785,7 @@ Describe 'GitHubRepositories\Set-GitHubRepository' {
785785 AllowUpdateBranch = $true
786786 DeleteBranchOnMerge = $true
787787 IsTemplate = $true
788+ WebCommitSignoffRequired = $true
788789 }
789790
790791 $updatedRepo = Set-GitHubRepository @updateGithubRepositoryParms - PassThru
@@ -809,6 +810,7 @@ Describe 'GitHubRepositories\Set-GitHubRepository' {
809810 $updatedRepo.allow_update_branch | Should - BeTrue
810811 $updatedRepo.delete_branch_on_merge | Should - BeTrue
811812 $updatedRepo.is_template | Should - BeTrue
813+ $updatedRepo.web_commit_signoff_required | Should - BeTrue
812814 }
813815 }
814816
You can’t perform that action at this time.
0 commit comments