Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Nov 5, 2023
1 parent a236000 commit b52bdf2
Showing 1 changed file with 29 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,33 +326,35 @@
}

Process {
$params = @{
Owner = $Owner
Name = $Name
Description = $Description
Homepage = $Homepage
Visibility = $Visibility
HasIssues = $HasIssues
HasProjects = $HasProjects
HasWiki = $HasWiki
HasDiscussions = $HasDiscussions
HasDownloads = $HasDownloads
IsTemplate = $IsTemplate
TeamId = $TeamId
AutoInit = $AutoInit
AllowSquashMerge = $AllowSquashMerge
AllowMergeCommit = $AllowMergeCommit
AllowRebaseMerge = $AllowRebaseMerge
AllowAutoMerge = $AllowAutoMerge
DeleteBranchOnMerge = $DeleteBranchOnMerge
SquashMergeCommitTitle = $SquashMergeCommitTitle
SquashMergeCommitMessage = $SquashMergeCommitMessage
MergeCommitTitle = $MergeCommitTitle
MergeCommitMessage = $MergeCommitMessage
GitignoreTemplate = $GitignoreTemplate
LicenseTemplate = $LicenseTemplate
if ($PSCmdlet.ParameterSetName -in 'user', 'org') {
$params = @{
Owner = $Owner
Name = $Name
Description = $Description
Homepage = $Homepage
Visibility = $Visibility
HasIssues = $HasIssues
HasProjects = $HasProjects
HasWiki = $HasWiki
HasDiscussions = $HasDiscussions
HasDownloads = $HasDownloads
IsTemplate = $IsTemplate
TeamId = $TeamId
AutoInit = $AutoInit
AllowSquashMerge = $AllowSquashMerge
AllowMergeCommit = $AllowMergeCommit
AllowRebaseMerge = $AllowRebaseMerge
AllowAutoMerge = $AllowAutoMerge
DeleteBranchOnMerge = $DeleteBranchOnMerge
SquashMergeCommitTitle = $SquashMergeCommitTitle
SquashMergeCommitMessage = $SquashMergeCommitMessage
MergeCommitTitle = $MergeCommitTitle
MergeCommitMessage = $MergeCommitMessage
GitignoreTemplate = $GitignoreTemplate
LicenseTemplate = $LicenseTemplate
}
Remove-HashtableEntry -Hashtable $params -NullOrEmptyValues
}
Remove-HashtableEntry -Hashtable $params -NullOrEmptyValues

switch ($PSCmdlet.ParameterSetName) {
'user' {
Expand Down Expand Up @@ -385,7 +387,7 @@
$params = @{
ForkOwner = $ForkOwner
ForkRepo = $ForkRepo
Owner = $Owner
Organization = $Owner
Name = $Name
DefaultBranchOnly = $DefaultBranchOnly
}
Expand Down

0 comments on commit b52bdf2

Please sign in to comment.