From b6481474df4ef5b41cb7ac8688bfa37889166f69 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 15 Mar 2024 08:47:03 +0100 Subject: [PATCH] Require DynamicParams module --- .../Repositories/Repositories/New-GitHubRepositoryOrg.ps1 | 4 +++- .../Repositories/Repositories/New-GitHubRepositoryUser.ps1 | 4 +++- src/GitHub/public/Gitignore/Get-GitHubGitignore.ps1 | 2 ++ src/GitHub/public/License/Get-GitHubLicense.ps1 | 2 ++ .../public/Repositories/Repositories/Get-GitHubRepository.ps1 | 4 +++- .../public/Repositories/Repositories/New-GitHubRepository.ps1 | 4 +++- 6 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/GitHub/private/Repositories/Repositories/New-GitHubRepositoryOrg.ps1 b/src/GitHub/private/Repositories/Repositories/New-GitHubRepositoryOrg.ps1 index 494c4ffc2..67b774cda 100644 --- a/src/GitHub/private/Repositories/Repositories/New-GitHubRepositoryOrg.ps1 +++ b/src/GitHub/private/Repositories/Repositories/New-GitHubRepositoryOrg.ps1 @@ -1,4 +1,6 @@ -filter New-GitHubRepositoryOrg { +#Requires -Modules DynamicParams + +filter New-GitHubRepositoryOrg { <# .SYNOPSIS Create an organization repository diff --git a/src/GitHub/private/Repositories/Repositories/New-GitHubRepositoryUser.ps1 b/src/GitHub/private/Repositories/Repositories/New-GitHubRepositoryUser.ps1 index eca573886..ffbd103ee 100644 --- a/src/GitHub/private/Repositories/Repositories/New-GitHubRepositoryUser.ps1 +++ b/src/GitHub/private/Repositories/Repositories/New-GitHubRepositoryUser.ps1 @@ -1,4 +1,6 @@ -filter New-GitHubRepositoryUser { +#Requires -Modules DynamicParams + +filter New-GitHubRepositoryUser { <# .SYNOPSIS Create a repository for the authenticated user diff --git a/src/GitHub/public/Gitignore/Get-GitHubGitignore.ps1 b/src/GitHub/public/Gitignore/Get-GitHubGitignore.ps1 index 6fc19a794..2438a0fb5 100644 --- a/src/GitHub/public/Gitignore/Get-GitHubGitignore.ps1 +++ b/src/GitHub/public/Gitignore/Get-GitHubGitignore.ps1 @@ -1,3 +1,5 @@ +#Requires -Modules DynamicParams + filter Get-GitHubGitignore { <# .SYNOPSIS diff --git a/src/GitHub/public/License/Get-GitHubLicense.ps1 b/src/GitHub/public/License/Get-GitHubLicense.ps1 index de1f90986..265f7fb73 100644 --- a/src/GitHub/public/License/Get-GitHubLicense.ps1 +++ b/src/GitHub/public/License/Get-GitHubLicense.ps1 @@ -1,3 +1,5 @@ +#Requires -Modules DynamicParams + filter Get-GitHubLicense { <# .SYNOPSIS diff --git a/src/GitHub/public/Repositories/Repositories/Get-GitHubRepository.ps1 b/src/GitHub/public/Repositories/Repositories/Get-GitHubRepository.ps1 index 2c90839be..6d1eb157c 100644 --- a/src/GitHub/public/Repositories/Repositories/Get-GitHubRepository.ps1 +++ b/src/GitHub/public/Repositories/Repositories/Get-GitHubRepository.ps1 @@ -1,4 +1,6 @@ -filter Get-GitHubRepository { +#Requires -Modules DynamicParams + +filter Get-GitHubRepository { <# .SYNOPSIS Gets a specific repository or list of repositories. diff --git a/src/GitHub/public/Repositories/Repositories/New-GitHubRepository.ps1 b/src/GitHub/public/Repositories/Repositories/New-GitHubRepository.ps1 index 16b9ead25..d10cfa5d5 100644 --- a/src/GitHub/public/Repositories/Repositories/New-GitHubRepository.ps1 +++ b/src/GitHub/public/Repositories/Repositories/New-GitHubRepository.ps1 @@ -1,4 +1,6 @@ -filter New-GitHubRepository { +#Requires -Modules DynamicParams + +filter New-GitHubRepository { <# .SYNOPSIS Create a repository for a user or an organization.