From 6816fad42967483dfa4e7f6daf20c2f0e6953da5 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 14 Dec 2024 23:53:57 +0100 Subject: [PATCH] Remove default value for paging on api functions --- .../Blocking/Get-GitHubBlockedUserByOrganization.ps1 | 2 +- .../private/Organization/Get-GitHubAllOrganization.ps1 | 2 +- .../private/Organization/Get-GitHubMyOrganization.ps1 | 2 +- .../private/Organization/Get-GitHubUserOrganization.ps1 | 2 +- .../Releases/Assets/Get-GitHubReleaseAssetByReleaseID.ps1 | 2 +- .../private/Releases/Releases/Get-GitHubReleaseAll.ps1 | 2 +- .../Repositories/Repositories/Get-GitHubMyRepositories.ps1 | 2 +- .../Repositories/Get-GitHubRepositoryListByOrg.ps1 | 2 +- .../Repositories/Get-GitHubRepositoryListByUser.ps1 | 2 +- .../private/Users/Blocking/Get-GitHubBlockedUserByUser.ps1 | 2 +- .../private/Users/Blocking/Test-GitHubBlockedUserByUser.ps1 | 2 +- src/functions/private/Users/Emails/Get-GitHubUserAllEmail.ps1 | 2 +- .../private/Users/Emails/Get-GitHubUserPublicEmail.ps1 | 2 +- .../private/Users/Followers/Get-GitHubUserFollowersOfUser.ps1 | 2 +- .../private/Users/Followers/Get-GitHubUserFollowingMe.ps1 | 2 +- .../private/Users/Followers/Get-GitHubUserFollowingUser.ps1 | 2 +- .../private/Users/Followers/Get-GitHubUserMyFollowers.ps1 | 2 +- .../private/Users/GPG-Keys/Get-GitHubUserGpgKeyForUser.ps1 | 2 +- .../private/Users/GPG-Keys/Get-GitHubUserMyGpgKey.ps1 | 2 +- src/functions/private/Users/Get-GitHubAllUser.ps1 | 2 +- src/functions/private/Users/Keys/Get-GitHubUserKeyForUser.ps1 | 2 +- src/functions/private/Users/Keys/Get-GitHubUserMyKey.ps1 | 2 +- .../Users/SSH-Signing-Keys/Get-GitHubUserMySigningKey.ps1 | 2 +- .../Users/SSH-Signing-Keys/Get-GitHubUserSigningKeyForUser.ps1 | 2 +- .../private/Users/Social-Accounts/Get-GitHubMyUserSocials.ps1 | 2 +- src/functions/public/Actions/Get-GitHubWorkflow.ps1 | 2 +- src/functions/public/Actions/Get-GitHubWorkflowRun.ps1 | 2 +- src/functions/public/Organization/Get-GitHubOrganization.ps1 | 2 +- .../Organization/Get-GitHubOrganizationAppInstallation.ps1 | 2 +- .../Organization/Members/Get-GitHubOrganizationMember.ps1 | 2 +- .../Members/Get-GitHubOrganizationPendingInvitation.ps1 | 2 +- src/functions/public/Releases/Releases/Get-GitHubRelease.ps1 | 2 +- .../public/Repositories/Repositories/Get-GitHubRepository.ps1 | 2 +- .../Repositories/Repositories/Get-GitHubRepositoryActivity.ps1 | 3 +-- .../Repositories/Get-GitHubRepositoryContributor.ps1 | 2 +- .../Repositories/Repositories/Get-GitHubRepositoryFork.ps1 | 3 +-- .../Repositories/Repositories/Get-GitHubRepositoryTag.ps1 | 2 +- .../Repositories/Repositories/Get-GitHubRepositoryTeam.ps1 | 2 +- .../Repositories/Repositories/Get-GitHubRepositoryTopic.ps1 | 2 +- .../Repositories/RuleSuite/Get-GitHubRepositoryRuleSuite.ps1 | 2 +- .../RuleSuite/Get-GitHubRepositoryRuleSuiteList.ps1 | 2 +- src/functions/public/Users/Blocking/Get-GitHubBlockedUser.ps1 | 2 +- src/functions/public/Users/Blocking/Test-GitHubBlockedUser.ps1 | 2 +- src/functions/public/Users/Emails/Get-GitHubUserEmail.ps1 | 2 +- .../public/Users/Followers/Get-GitHubUserFollower.ps1 | 2 +- .../public/Users/Followers/Get-GitHubUserFollowing.ps1 | 2 +- src/functions/public/Users/GPG-Keys/Get-GitHubUserGpgKey.ps1 | 2 +- src/functions/public/Users/Get-GitHubUser.ps1 | 2 +- src/functions/public/Users/Keys/Get-GitHubUserKey.ps1 | 2 +- .../public/Users/SSH-Signing-Keys/Get-GitHubUserSigningKey.ps1 | 2 +- 50 files changed, 50 insertions(+), 52 deletions(-) diff --git a/src/functions/private/Organization/Blocking/Get-GitHubBlockedUserByOrganization.ps1 b/src/functions/private/Organization/Blocking/Get-GitHubBlockedUserByOrganization.ps1 index ab853e3c..bcb1d3c6 100644 --- a/src/functions/private/Organization/Blocking/Get-GitHubBlockedUserByOrganization.ps1 +++ b/src/functions/private/Organization/Blocking/Get-GitHubBlockedUserByOrganization.ps1 @@ -27,7 +27,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Organization/Get-GitHubAllOrganization.ps1 b/src/functions/private/Organization/Get-GitHubAllOrganization.ps1 index bc9ffd38..9da64455 100644 --- a/src/functions/private/Organization/Get-GitHubAllOrganization.ps1 +++ b/src/functions/private/Organization/Get-GitHubAllOrganization.ps1 @@ -29,7 +29,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Organization/Get-GitHubMyOrganization.ps1 b/src/functions/private/Organization/Get-GitHubMyOrganization.ps1 index 87fb7e6c..101e1cd0 100644 --- a/src/functions/private/Organization/Get-GitHubMyOrganization.ps1 +++ b/src/functions/private/Organization/Get-GitHubMyOrganization.ps1 @@ -28,7 +28,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Organization/Get-GitHubUserOrganization.ps1 b/src/functions/private/Organization/Get-GitHubUserOrganization.ps1 index 7cb92bd2..3542631f 100644 --- a/src/functions/private/Organization/Get-GitHubUserOrganization.ps1 +++ b/src/functions/private/Organization/Get-GitHubUserOrganization.ps1 @@ -30,7 +30,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Releases/Assets/Get-GitHubReleaseAssetByReleaseID.ps1 b/src/functions/private/Releases/Assets/Get-GitHubReleaseAssetByReleaseID.ps1 index e66ad587..9ed3f8fb 100644 --- a/src/functions/private/Releases/Assets/Get-GitHubReleaseAssetByReleaseID.ps1 +++ b/src/functions/private/Releases/Assets/Get-GitHubReleaseAssetByReleaseID.ps1 @@ -36,7 +36,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Releases/Releases/Get-GitHubReleaseAll.ps1 b/src/functions/private/Releases/Releases/Get-GitHubReleaseAll.ps1 index f837c935..3a24d705 100644 --- a/src/functions/private/Releases/Releases/Get-GitHubReleaseAll.ps1 +++ b/src/functions/private/Releases/Releases/Get-GitHubReleaseAll.ps1 @@ -30,7 +30,7 @@ # The number of results per page (max 100). [Parameter(ParameterSetName = 'AllUsers')] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Repositories/Repositories/Get-GitHubMyRepositories.ps1 b/src/functions/private/Repositories/Repositories/Get-GitHubMyRepositories.ps1 index d7b05911..cc466a06 100644 --- a/src/functions/private/Repositories/Repositories/Get-GitHubMyRepositories.ps1 +++ b/src/functions/private/Repositories/Repositories/Get-GitHubMyRepositories.ps1 @@ -97,7 +97,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # Only show repositories updated after the given time. [Parameter()] diff --git a/src/functions/private/Repositories/Repositories/Get-GitHubRepositoryListByOrg.ps1 b/src/functions/private/Repositories/Repositories/Get-GitHubRepositoryListByOrg.ps1 index 23acd2fd..07d160dd 100644 --- a/src/functions/private/Repositories/Repositories/Get-GitHubRepositoryListByOrg.ps1 +++ b/src/functions/private/Repositories/Repositories/Get-GitHubRepositoryListByOrg.ps1 @@ -54,7 +54,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Repositories/Repositories/Get-GitHubRepositoryListByUser.ps1 b/src/functions/private/Repositories/Repositories/Get-GitHubRepositoryListByUser.ps1 index 7b72332f..75493e63 100644 --- a/src/functions/private/Repositories/Repositories/Get-GitHubRepositoryListByUser.ps1 +++ b/src/functions/private/Repositories/Repositories/Get-GitHubRepositoryListByUser.ps1 @@ -56,7 +56,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Users/Blocking/Get-GitHubBlockedUserByUser.ps1 b/src/functions/private/Users/Blocking/Get-GitHubBlockedUserByUser.ps1 index 90d531ff..da1c9931 100644 --- a/src/functions/private/Users/Blocking/Get-GitHubBlockedUserByUser.ps1 +++ b/src/functions/private/Users/Blocking/Get-GitHubBlockedUserByUser.ps1 @@ -20,7 +20,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Users/Blocking/Test-GitHubBlockedUserByUser.ps1 b/src/functions/private/Users/Blocking/Test-GitHubBlockedUserByUser.ps1 index feef9eb5..3d95654b 100644 --- a/src/functions/private/Users/Blocking/Test-GitHubBlockedUserByUser.ps1 +++ b/src/functions/private/Users/Blocking/Test-GitHubBlockedUserByUser.ps1 @@ -32,7 +32,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Users/Emails/Get-GitHubUserAllEmail.ps1 b/src/functions/private/Users/Emails/Get-GitHubUserAllEmail.ps1 index da004232..e8bb025f 100644 --- a/src/functions/private/Users/Emails/Get-GitHubUserAllEmail.ps1 +++ b/src/functions/private/Users/Emails/Get-GitHubUserAllEmail.ps1 @@ -22,7 +22,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Users/Emails/Get-GitHubUserPublicEmail.ps1 b/src/functions/private/Users/Emails/Get-GitHubUserPublicEmail.ps1 index e2407227..537ac3d6 100644 --- a/src/functions/private/Users/Emails/Get-GitHubUserPublicEmail.ps1 +++ b/src/functions/private/Users/Emails/Get-GitHubUserPublicEmail.ps1 @@ -24,7 +24,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Users/Followers/Get-GitHubUserFollowersOfUser.ps1 b/src/functions/private/Users/Followers/Get-GitHubUserFollowersOfUser.ps1 index c1d7dce8..f0d2803b 100644 --- a/src/functions/private/Users/Followers/Get-GitHubUserFollowersOfUser.ps1 +++ b/src/functions/private/Users/Followers/Get-GitHubUserFollowersOfUser.ps1 @@ -30,7 +30,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Users/Followers/Get-GitHubUserFollowingMe.ps1 b/src/functions/private/Users/Followers/Get-GitHubUserFollowingMe.ps1 index 2dc1d96f..9adf08a7 100644 --- a/src/functions/private/Users/Followers/Get-GitHubUserFollowingMe.ps1 +++ b/src/functions/private/Users/Followers/Get-GitHubUserFollowingMe.ps1 @@ -21,7 +21,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Users/Followers/Get-GitHubUserFollowingUser.ps1 b/src/functions/private/Users/Followers/Get-GitHubUserFollowingUser.ps1 index 922fb05d..782ea28a 100644 --- a/src/functions/private/Users/Followers/Get-GitHubUserFollowingUser.ps1 +++ b/src/functions/private/Users/Followers/Get-GitHubUserFollowingUser.ps1 @@ -30,7 +30,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Users/Followers/Get-GitHubUserMyFollowers.ps1 b/src/functions/private/Users/Followers/Get-GitHubUserMyFollowers.ps1 index 0fd5940e..a663a4cb 100644 --- a/src/functions/private/Users/Followers/Get-GitHubUserMyFollowers.ps1 +++ b/src/functions/private/Users/Followers/Get-GitHubUserMyFollowers.ps1 @@ -22,7 +22,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Users/GPG-Keys/Get-GitHubUserGpgKeyForUser.ps1 b/src/functions/private/Users/GPG-Keys/Get-GitHubUserGpgKeyForUser.ps1 index 4252cf89..4d34bef1 100644 --- a/src/functions/private/Users/GPG-Keys/Get-GitHubUserGpgKeyForUser.ps1 +++ b/src/functions/private/Users/GPG-Keys/Get-GitHubUserGpgKeyForUser.ps1 @@ -28,7 +28,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Users/GPG-Keys/Get-GitHubUserMyGpgKey.ps1 b/src/functions/private/Users/GPG-Keys/Get-GitHubUserMyGpgKey.ps1 index c1da300b..955b2ed9 100644 --- a/src/functions/private/Users/GPG-Keys/Get-GitHubUserMyGpgKey.ps1 +++ b/src/functions/private/Users/GPG-Keys/Get-GitHubUserMyGpgKey.ps1 @@ -23,7 +23,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Users/Get-GitHubAllUser.ps1 b/src/functions/private/Users/Get-GitHubAllUser.ps1 index 5590c589..9c459130 100644 --- a/src/functions/private/Users/Get-GitHubAllUser.ps1 +++ b/src/functions/private/Users/Get-GitHubAllUser.ps1 @@ -28,7 +28,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Users/Keys/Get-GitHubUserKeyForUser.ps1 b/src/functions/private/Users/Keys/Get-GitHubUserKeyForUser.ps1 index 806522e5..46ac6b6d 100644 --- a/src/functions/private/Users/Keys/Get-GitHubUserKeyForUser.ps1 +++ b/src/functions/private/Users/Keys/Get-GitHubUserKeyForUser.ps1 @@ -28,7 +28,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Users/Keys/Get-GitHubUserMyKey.ps1 b/src/functions/private/Users/Keys/Get-GitHubUserMyKey.ps1 index 8de59388..d981138f 100644 --- a/src/functions/private/Users/Keys/Get-GitHubUserMyKey.ps1 +++ b/src/functions/private/Users/Keys/Get-GitHubUserMyKey.ps1 @@ -23,7 +23,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Users/SSH-Signing-Keys/Get-GitHubUserMySigningKey.ps1 b/src/functions/private/Users/SSH-Signing-Keys/Get-GitHubUserMySigningKey.ps1 index 1f78dd47..ce3a6412 100644 --- a/src/functions/private/Users/SSH-Signing-Keys/Get-GitHubUserMySigningKey.ps1 +++ b/src/functions/private/Users/SSH-Signing-Keys/Get-GitHubUserMySigningKey.ps1 @@ -23,7 +23,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Users/SSH-Signing-Keys/Get-GitHubUserSigningKeyForUser.ps1 b/src/functions/private/Users/SSH-Signing-Keys/Get-GitHubUserSigningKeyForUser.ps1 index 68339a6e..6a10fbc7 100644 --- a/src/functions/private/Users/SSH-Signing-Keys/Get-GitHubUserSigningKeyForUser.ps1 +++ b/src/functions/private/Users/SSH-Signing-Keys/Get-GitHubUserSigningKeyForUser.ps1 @@ -28,7 +28,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/private/Users/Social-Accounts/Get-GitHubMyUserSocials.ps1 b/src/functions/private/Users/Social-Accounts/Get-GitHubMyUserSocials.ps1 index 82ec04a2..1ccc4a08 100644 --- a/src/functions/private/Users/Social-Accounts/Get-GitHubMyUserSocials.ps1 +++ b/src/functions/private/Users/Social-Accounts/Get-GitHubMyUserSocials.ps1 @@ -21,7 +21,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Actions/Get-GitHubWorkflow.ps1 b/src/functions/public/Actions/Get-GitHubWorkflow.ps1 index 088d3fdf..2b27ae2c 100644 --- a/src/functions/public/Actions/Get-GitHubWorkflow.ps1 +++ b/src/functions/public/Actions/Get-GitHubWorkflow.ps1 @@ -32,7 +32,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Actions/Get-GitHubWorkflowRun.ps1 b/src/functions/public/Actions/Get-GitHubWorkflowRun.ps1 index c39bb187..390d7031 100644 --- a/src/functions/public/Actions/Get-GitHubWorkflowRun.ps1 +++ b/src/functions/public/Actions/Get-GitHubWorkflowRun.ps1 @@ -22,7 +22,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Organization/Get-GitHubOrganization.ps1 b/src/functions/public/Organization/Get-GitHubOrganization.ps1 index b05f7f76..7dde6333 100644 --- a/src/functions/public/Organization/Get-GitHubOrganization.ps1 +++ b/src/functions/public/Organization/Get-GitHubOrganization.ps1 @@ -71,7 +71,7 @@ [Parameter(ParameterSetName = 'UserOrg')] [Parameter(ParameterSetName = '__DefaultSet')] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Organization/Get-GitHubOrganizationAppInstallation.ps1 b/src/functions/public/Organization/Get-GitHubOrganizationAppInstallation.ps1 index 2b0c12cc..f6027e61 100644 --- a/src/functions/public/Organization/Get-GitHubOrganizationAppInstallation.ps1 +++ b/src/functions/public/Organization/Get-GitHubOrganizationAppInstallation.ps1 @@ -33,7 +33,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Organization/Members/Get-GitHubOrganizationMember.ps1 b/src/functions/public/Organization/Members/Get-GitHubOrganizationMember.ps1 index bc4a939b..6f96bd00 100644 --- a/src/functions/public/Organization/Members/Get-GitHubOrganizationMember.ps1 +++ b/src/functions/public/Organization/Members/Get-GitHubOrganizationMember.ps1 @@ -33,7 +33,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Organization/Members/Get-GitHubOrganizationPendingInvitation.ps1 b/src/functions/public/Organization/Members/Get-GitHubOrganizationPendingInvitation.ps1 index f678434c..ebcb36e6 100644 --- a/src/functions/public/Organization/Members/Get-GitHubOrganizationPendingInvitation.ps1 +++ b/src/functions/public/Organization/Members/Get-GitHubOrganizationPendingInvitation.ps1 @@ -32,7 +32,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Releases/Releases/Get-GitHubRelease.ps1 b/src/functions/public/Releases/Releases/Get-GitHubRelease.ps1 index 9c6b2d46..ae4ac5ac 100644 --- a/src/functions/public/Releases/Releases/Get-GitHubRelease.ps1 +++ b/src/functions/public/Releases/Releases/Get-GitHubRelease.ps1 @@ -47,7 +47,7 @@ # The number of results per page (max 100). [Parameter(ParameterSetName = 'All')] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # Get the latest release only [Parameter( diff --git a/src/functions/public/Repositories/Repositories/Get-GitHubRepository.ps1 b/src/functions/public/Repositories/Repositories/Get-GitHubRepository.ps1 index 48a65612..73443594 100644 --- a/src/functions/public/Repositories/Repositories/Get-GitHubRepository.ps1 +++ b/src/functions/public/Repositories/Repositories/Get-GitHubRepository.ps1 @@ -122,7 +122,7 @@ filter Get-GitHubRepository { [Parameter(ParameterSetName = 'ListByOrg')] [Parameter(ParameterSetName = 'ListByUser')] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryActivity.ps1 b/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryActivity.ps1 index c0d97e8a..2d785963 100644 --- a/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryActivity.ps1 +++ b/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryActivity.ps1 @@ -69,8 +69,7 @@ # Default: 30 [Parameter()] [ValidateRange(1, 100)] - [Alias('per_page')] - [int] $PerPage = 30, + [int] $PerPage, # A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. [Parameter(ParameterSetName = 'BeforeAfter')] diff --git a/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryContributor.ps1 b/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryContributor.ps1 index 69094842..f5389057 100644 --- a/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryContributor.ps1 +++ b/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryContributor.ps1 @@ -38,7 +38,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryFork.ps1 b/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryFork.ps1 index 260bd568..23279fc2 100644 --- a/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryFork.ps1 +++ b/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryFork.ps1 @@ -34,8 +34,7 @@ # The number of results per page. [Parameter()] [ValidateRange(1, 100)] - [Alias('per_page')] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryTag.ps1 b/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryTag.ps1 index 69ca4607..b8cf1788 100644 --- a/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryTag.ps1 +++ b/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryTag.ps1 @@ -30,7 +30,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryTeam.ps1 b/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryTeam.ps1 index 782baf6f..32275b33 100644 --- a/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryTeam.ps1 +++ b/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryTeam.ps1 @@ -38,7 +38,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryTopic.ps1 b/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryTopic.ps1 index f9ca2281..9c95fe22 100644 --- a/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryTopic.ps1 +++ b/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryTopic.ps1 @@ -26,7 +26,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Repositories/RuleSuite/Get-GitHubRepositoryRuleSuite.ps1 b/src/functions/public/Repositories/RuleSuite/Get-GitHubRepositoryRuleSuite.ps1 index 30b23e94..e5c00d80 100644 --- a/src/functions/public/Repositories/RuleSuite/Get-GitHubRepositoryRuleSuite.ps1 +++ b/src/functions/public/Repositories/RuleSuite/Get-GitHubRepositoryRuleSuite.ps1 @@ -67,7 +67,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The unique identifier of the rule suite result. To get this ID, you can use GET /repos/ { owner }/ { repo }/rulesets/rule-suites for repositories and GET /orgs/ { org }/rulesets/rule-suites for organizations. [Parameter( diff --git a/src/functions/public/Repositories/RuleSuite/Get-GitHubRepositoryRuleSuiteList.ps1 b/src/functions/public/Repositories/RuleSuite/Get-GitHubRepositoryRuleSuiteList.ps1 index 7d11ccd7..5a748330 100644 --- a/src/functions/public/Repositories/RuleSuite/Get-GitHubRepositoryRuleSuiteList.ps1 +++ b/src/functions/public/Repositories/RuleSuite/Get-GitHubRepositoryRuleSuiteList.ps1 @@ -61,7 +61,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Users/Blocking/Get-GitHubBlockedUser.ps1 b/src/functions/public/Users/Blocking/Get-GitHubBlockedUser.ps1 index dfc24886..d0f4cde4 100644 --- a/src/functions/public/Users/Blocking/Get-GitHubBlockedUser.ps1 +++ b/src/functions/public/Users/Blocking/Get-GitHubBlockedUser.ps1 @@ -36,7 +36,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Users/Blocking/Test-GitHubBlockedUser.ps1 b/src/functions/public/Users/Blocking/Test-GitHubBlockedUser.ps1 index 2b057c0c..37362fd7 100644 --- a/src/functions/public/Users/Blocking/Test-GitHubBlockedUser.ps1 +++ b/src/functions/public/Users/Blocking/Test-GitHubBlockedUser.ps1 @@ -48,7 +48,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Users/Emails/Get-GitHubUserEmail.ps1 b/src/functions/public/Users/Emails/Get-GitHubUserEmail.ps1 index 641c7c5e..4d32fc26 100644 --- a/src/functions/public/Users/Emails/Get-GitHubUserEmail.ps1 +++ b/src/functions/public/Users/Emails/Get-GitHubUserEmail.ps1 @@ -30,7 +30,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, [Parameter()] [switch] $Public, diff --git a/src/functions/public/Users/Followers/Get-GitHubUserFollower.ps1 b/src/functions/public/Users/Followers/Get-GitHubUserFollower.ps1 index 0f512af9..133ed8ab 100644 --- a/src/functions/public/Users/Followers/Get-GitHubUserFollower.ps1 +++ b/src/functions/public/Users/Followers/Get-GitHubUserFollower.ps1 @@ -34,7 +34,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Users/Followers/Get-GitHubUserFollowing.ps1 b/src/functions/public/Users/Followers/Get-GitHubUserFollowing.ps1 index 939c0b4c..02d6e586 100644 --- a/src/functions/public/Users/Followers/Get-GitHubUserFollowing.ps1 +++ b/src/functions/public/Users/Followers/Get-GitHubUserFollowing.ps1 @@ -35,7 +35,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Users/GPG-Keys/Get-GitHubUserGpgKey.ps1 b/src/functions/public/Users/GPG-Keys/Get-GitHubUserGpgKey.ps1 index 01157c2a..7fe277e4 100644 --- a/src/functions/public/Users/GPG-Keys/Get-GitHubUserGpgKey.ps1 +++ b/src/functions/public/Users/GPG-Keys/Get-GitHubUserGpgKey.ps1 @@ -47,7 +47,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Users/Get-GitHubUser.ps1 b/src/functions/public/Users/Get-GitHubUser.ps1 index 88a9a8b8..f86cef11 100644 --- a/src/functions/public/Users/Get-GitHubUser.ps1 +++ b/src/functions/public/Users/Get-GitHubUser.ps1 @@ -56,7 +56,7 @@ # The number of results per page (max 100). [Parameter(ParameterSetName = 'AllUsers')] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Users/Keys/Get-GitHubUserKey.ps1 b/src/functions/public/Users/Keys/Get-GitHubUserKey.ps1 index 0659b8d4..b13fa013 100644 --- a/src/functions/public/Users/Keys/Get-GitHubUserKey.ps1 +++ b/src/functions/public/Users/Keys/Get-GitHubUserKey.ps1 @@ -50,7 +50,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. diff --git a/src/functions/public/Users/SSH-Signing-Keys/Get-GitHubUserSigningKey.ps1 b/src/functions/public/Users/SSH-Signing-Keys/Get-GitHubUserSigningKey.ps1 index e81d09bf..1c6927c2 100644 --- a/src/functions/public/Users/SSH-Signing-Keys/Get-GitHubUserSigningKey.ps1 +++ b/src/functions/public/Users/SSH-Signing-Keys/Get-GitHubUserSigningKey.ps1 @@ -50,7 +50,7 @@ # The number of results per page (max 100). [Parameter()] [ValidateRange(1, 100)] - [int] $PerPage = 30, + [int] $PerPage, # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object.