Skip to content

Commit

Permalink
Remove null or empty values from parameters in Get-GitHubRepository f…
Browse files Browse the repository at this point in the history
…unction
  • Loading branch information
MariusStorhaug committed Dec 15, 2024
1 parent ad4a110 commit 613c5a8
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ filter Get-GitHubRepository {
PerPage = $PerPage
Since = $Since
Before = $Before
}
} | Remove-HashtableEntry -NullOrEmptyValues
$params | Format-Table -AutoSize | Out-String | ForEach-Object { Write-Debug $_ }
Get-GitHubMyRepositories @params
}
Expand All @@ -206,7 +206,7 @@ filter Get-GitHubRepository {
PerPage = $PerPage
Since = $Since
Before = $Before
}
} | Remove-HashtableEntry -NullOrEmptyValues
$params | Format-Table -AutoSize | Out-String | ForEach-Object { Write-Debug $_ }
Get-GitHubMyRepositories @params
}
Expand All @@ -215,15 +215,15 @@ filter Get-GitHubRepository {
Context = $Context
Owner = $Owner
Repo = $Repo
}
} | Remove-HashtableEntry -NullOrEmptyValues
$params | Format-Table -AutoSize | Out-String | ForEach-Object { Write-Debug $_ }
Get-GitHubRepositoryByName @params
}
'ListByID' {
$params = @{
Context = $Context
Since = $SinceID
}
} | Remove-HashtableEntry -NullOrEmptyValues
$params | Format-Table -AutoSize | Out-String | ForEach-Object { Write-Debug $_ }
Get-GitHubRepositoryListByID @params
}
Expand All @@ -235,7 +235,7 @@ filter Get-GitHubRepository {
Sort = $Sort
Direction = $Direction
PerPage = $PerPage
}
} | Remove-HashtableEntry -NullOrEmptyValues
$params | Format-Table -AutoSize | Out-String | ForEach-Object { Write-Debug $_ }
Get-GitHubRepositoryListByOrg @params
}
Expand All @@ -247,7 +247,7 @@ filter Get-GitHubRepository {
Sort = $Sort
Direction = $Direction
PerPage = $PerPage
}
} | Remove-HashtableEntry -NullOrEmptyValues
$params | Format-Table -AutoSize | Out-String | ForEach-Object { Write-Debug $_ }
Get-GitHubRepositoryListByUser @params
}
Expand Down

0 comments on commit 613c5a8

Please sign in to comment.