From ad4a1102d2b1f37d9d423643b61b0209616e2642 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Mon, 16 Dec 2024 00:14:06 +0100 Subject: [PATCH] Set default value for Direction parameter in Get-GitHubRepository function --- .../public/Repositories/Repositories/Get-GitHubRepository.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/public/Repositories/Repositories/Get-GitHubRepository.ps1 b/src/functions/public/Repositories/Repositories/Get-GitHubRepository.ps1 index 6798e63e..789a647a 100644 --- a/src/functions/public/Repositories/Repositories/Get-GitHubRepository.ps1 +++ b/src/functions/public/Repositories/Repositories/Get-GitHubRepository.ps1 @@ -115,7 +115,7 @@ filter Get-GitHubRepository { [Parameter(ParameterSetName = 'ListByOrg')] [Parameter(ParameterSetName = 'ListByUser')] [ValidateSet('asc', 'desc')] - [string] $Direction, + [string] $Direction = 'asc', # The number of results per page (max 100). [Parameter(ParameterSetName = 'MyRepos')]