Skip to content

Commit

Permalink
Fix shoudprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Oct 31, 2023
1 parent 5dee51e commit 982712f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,14 @@

switch ($PSCmdlet.ParameterSetName) {
'user' {
New-GitHubRepositoryUser @params
if ($PSCmdlet.ShouldProcess("repository for user [$repo]", 'Create')) {
New-GitHubRepositoryUser @params
}
}
'org' {
New-GitHubRepositoryOrg @params
if ($PSCmdlet.ShouldProcess("repository for organization [$Owner/$Repo]", 'Create')) {
New-GitHubRepositoryOrg @params
}
}
}
}
Expand Down

0 comments on commit 982712f

Please sign in to comment.