Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧪[Tests]: Refactor and enable source code tests #234

Merged
merged 42 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
3af88db
Enable tests
MariusStorhaug Dec 20, 2024
4dd8b6b
Refactor test suite
MariusStorhaug Dec 20, 2024
767b44a
Improve code readability by formatting comments and function definiti…
MariusStorhaug Dec 20, 2024
d122f2f
Fix
MariusStorhaug Dec 20, 2024
89117fb
Add Command tests
MariusStorhaug Dec 21, 2024
a460066
Add config tests
MariusStorhaug Dec 21, 2024
a3a6ee7
Fix
MariusStorhaug Dec 21, 2024
3e2e185
Add parameter attributes to Invoke-GitHubGraphQLQuery for improved va…
MariusStorhaug Dec 21, 2024
94a078b
Add context assertion for GitHub authentication in Set-GitHubGitConfig
MariusStorhaug Dec 21, 2024
193d9c6
Reorganize rate-limit tests in GitHub.Tests.ps1 for improved clarity …
MariusStorhaug Dec 21, 2024
20790ba
Enhance GitHub status tests by adding 'Stamp' parameter and introduce…
MariusStorhaug Dec 21, 2024
fbb3ab0
Remove unnecessary blank line in Get-GitHubLicense.ps1 for improved r…
MariusStorhaug Dec 21, 2024
b7ba42e
MAke UpdateGitHubUserAccessToken private
MariusStorhaug Dec 21, 2024
1b267d8
Rename Invoke-GitHubGraphQL to Invoke-GitHubGraphQLQuery for consiste…
MariusStorhaug Dec 21, 2024
bb77f7f
Add tests for Get-GitHubEmojis and GitHub App JWT retrieval
MariusStorhaug Dec 21, 2024
ea85134
Rename Get-GitHubEmojis to Get-GitHubEmoji for consistency in tests
MariusStorhaug Dec 21, 2024
47d881b
Add tests for Get-GitHubGitignore function with parameter handling
MariusStorhaug Dec 21, 2024
dc221d1
Add tests for GitHub App functionalities including JWT retrieval, app…
MariusStorhaug Dec 21, 2024
d5e7ea6
Add test for webhook redelivery functionality in GitHub App
MariusStorhaug Dec 21, 2024
924b28e
Fix
MariusStorhaug Dec 21, 2024
37626da
Add skip test comments for workflow-related functions in preparation …
MariusStorhaug Dec 21, 2024
ba659cb
Add skip test comments for GitHub team and user functions in preparat…
MariusStorhaug Dec 21, 2024
888a82e
Add skip test comments for various GitHub functions in preparation fo…
MariusStorhaug Dec 21, 2024
883483e
Refactor GitHub configuration handling to strip protocol from HostNam…
MariusStorhaug Dec 21, 2024
daf2639
Fix
MariusStorhaug Dec 21, 2024
6dec7b1
Merge branch 'main' of https://github.com/PSModule/GitHub into tests
MariusStorhaug Dec 22, 2024
b097eb6
Enhance Get-GitHubRepositoryLicense function to support content type …
MariusStorhaug Dec 23, 2024
e7a0dd2
Enhance Get-GitHubLicense function to include Name parameter and impr…
MariusStorhaug Dec 23, 2024
1acef29
Enhance Get-GitHubLicenseList function to clarify Context parameter d…
MariusStorhaug Dec 23, 2024
f14c0cb
Enhance Process-PSModule workflow to enable Debug and Verbose options…
MariusStorhaug Dec 23, 2024
998783f
Enhance Invoke-GitHubAPI function to improve error handling and loggi…
MariusStorhaug Dec 23, 2024
01e9b8f
Enhance GitHub workflows to include additional secrets for improved s…
MariusStorhaug Dec 23, 2024
18b733b
Add new env vars and tests
MariusStorhaug Dec 23, 2024
792040f
Add APIKey secret to Nightly-Run and Process-PSModule workflows for e…
MariusStorhaug Dec 23, 2024
6c4674d
Update GitHub tests to use enterprise app credentials and adjust expe…
MariusStorhaug Dec 23, 2024
50800c8
Update GitHub tests to reflect changes in context counts and adjust d…
MariusStorhaug Dec 23, 2024
cfbc81f
Update GitHub tests to reflect changes in context counts and validate…
MariusStorhaug Dec 23, 2024
92f8a59
Update GitHub tests to reflect changes in expected context counts and…
MariusStorhaug Dec 23, 2024
c4f3750
Refactor GitHub API functions to enhance parameter handling and updat…
MariusStorhaug Dec 23, 2024
1ba69a5
Fix
MariusStorhaug Dec 23, 2024
15326e0
Add support for 'text/html' response handling in GitHub API function
MariusStorhaug Dec 23, 2024
6447e01
Fix
MariusStorhaug Dec 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/Nightly-Run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ permissions:
pull-requests: write
statuses: write

env:
TEST_APP_CLIENT_ID: ${{ secrets.TEST_APP_CLIENT_ID }}
TEST_APP_PRIVATE_KEY: ${{ secrets.TEST_APP_PRIVATE_KEY }}
TEST_FG_PAT: ${{ secrets.TEST_FG_PAT }}
TEST_PAT: ${{ secrets.TEST_PAT }}

jobs:
Process-PSModule:
uses: PSModule/Process-PSModule/.github/workflows/CI.yml@v3
secrets: inherit
secrets:
APIKey: ${{ secrets.APIKey }}
TEST_APP_ENT_CLIENT_ID: ${{ secrets.TEST_APP_ENT_CLIENT_ID }}
TEST_APP_ENT_PRIVATE_KEY: ${{ secrets.TEST_APP_ENT_PRIVATE_KEY }}
TEST_APP_ORG_CLIENT_ID: ${{ secrets.TEST_APP_ORG_CLIENT_ID }}
TEST_APP_ORG_PRIVATE_KEY: ${{ secrets.TEST_APP_ORG_PRIVATE_KEY }}
TEST_USER_ORG_FG_PAT: ${{ secrets.TEST_USER_ORG_FG_PAT }}
TEST_USER_USER_FG_PAT: ${{ secrets.TEST_USER_USER_FG_PAT }}
TEST_USER_PAT: ${{ secrets.TEST_USER_PAT }}
17 changes: 9 additions & 8 deletions .github/workflows/Process-PSModule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,18 @@ permissions:
pages: write
id-token: write

env:
TEST_APP_CLIENT_ID: ${{ secrets.TEST_APP_CLIENT_ID }}
TEST_APP_PRIVATE_KEY: ${{ secrets.TEST_APP_PRIVATE_KEY }}
TEST_FG_PAT: ${{ secrets.TEST_FG_PAT }}
TEST_PAT: ${{ secrets.TEST_PAT }}

jobs:
Process-PSModule:
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v3
secrets: inherit
secrets:
APIKey: ${{ secrets.APIKey }}
TEST_APP_ENT_CLIENT_ID: ${{ secrets.TEST_APP_ENT_CLIENT_ID }}
TEST_APP_ENT_PRIVATE_KEY: ${{ secrets.TEST_APP_ENT_PRIVATE_KEY }}
TEST_APP_ORG_CLIENT_ID: ${{ secrets.TEST_APP_ORG_CLIENT_ID }}
TEST_APP_ORG_PRIVATE_KEY: ${{ secrets.TEST_APP_ORG_PRIVATE_KEY }}
TEST_USER_ORG_FG_PAT: ${{ secrets.TEST_USER_ORG_FG_PAT }}
TEST_USER_USER_FG_PAT: ${{ secrets.TEST_USER_USER_FG_PAT }}
TEST_USER_PAT: ${{ secrets.TEST_USER_PAT }}
with:
SkipTests: SourceCode
Debug: true
Verbose: true
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#Requires -Modules @{ ModuleName = 'Context'; RequiredVersion = '5.0.5' }

function Update-GitHubUserAccessToken {
function Update-GitHubUserAccessToken {
<#
.SYNOPSIS
Updates the GitHub access token.
Expand All @@ -21,12 +19,11 @@ function Update-GitHubUserAccessToken {
.NOTES
[Refreshing user access tokens](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/refreshing-user-access-tokens)
#>
[CmdletBinding(SupportsShouldProcess)]
[OutputType([securestring])]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidLongLines', '', Justification = 'Long links for documentation.')]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingWriteHost', '', Justification = 'Is the CLI part of the module.')]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '',
Justification = 'The tokens are recieved as clear text. Mitigating exposure by removing variables and performing garbage collection.')]
[CmdletBinding(SupportsShouldProcess)]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '', Justification = 'The tokens are recieved as clear text. Mitigating exposure by removing variables and performing garbage collection.')]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidLongLines', '', Scope = 'Function', Justification = 'Reason for suppressing')]
param(
# 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.
Expand Down
5 changes: 3 additions & 2 deletions src/functions/private/License/Get-GitHubLicenseList.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
[OutputType([string[]])]
[CmdletBinding()]
param(
# The context to run the command in.
# 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.
[Parameter()]
[string] $Context
[object] $Context = (Get-GitHubContext)
)

begin {
Expand Down
14 changes: 12 additions & 2 deletions src/functions/private/License/Get-GitHubRepositoryLicense.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Get the license for the Hello-World repository from the octocat account.

.NOTES
https://docs.github.com/rest/licenses/licenses#get-the-license-for-a-repository
[Get the license for a repository](https://docs.github.com/rest/licenses/licenses#get-the-license-for-a-repository)

#>
[CmdletBinding()]
Expand All @@ -28,6 +28,11 @@
[Parameter()]
[string] $Repo,

# The type of data to return. Can be either 'raw' or 'html'.
[Parameter()]
[ValidateSet('raw', 'html')]
[string] $Type = 'raw',

# 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.
[Parameter()]
Expand All @@ -49,14 +54,19 @@
$Repo = $Context.Repo
}
Write-Debug "Repo: [$Repo]"

$contentType = switch ($Type) {
'raw' { 'application/vnd.github.raw+json' }
'html' { 'application/vnd.github.html+json' }
}
}

process {
try {
$inputObject = @{
Context = $Context
APIEndpoint = "/repos/$Owner/$Repo/license"
Accept = 'application/vnd.github+json'
ContentType = $contentType
Method = 'GET'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,21 +123,26 @@
process {
try {
$body = @{
type = $Type
sort = $Sort
direction = $Direction
per_page = $PerPage
}

if ($PSBoundParameters.ContainsKey('Affiliation')) {
$body['affiliation'] = $Affiliation -join ','
}
if ($PSBoundParameters.ContainsKey('Since')) {
$body['since'] = $Since.ToString('yyyy-MM-ddTHH:mm:ssZ')
}
if ($PSBoundParameters.ContainsKey('Before')) {
$body['before'] = $Before.ToString('yyyy-MM-ddTHH:mm:ssZ')
}
Write-Debug "ParamSet: [$($PSCmdlet.ParameterSetName)]"
switch ($PSCmdlet.ParameterSetName) {
'Aff-Vis' {
$body['affiliation'] = $Affiliation -join ','
$body['visibility'] = $Visibility
}
'Type' {
$body['type'] = $Type
}
}

$inputObject = @{
Context = $Context
Expand Down
4 changes: 2 additions & 2 deletions src/functions/private/Teams/Get-GitHubRESTTeamByName.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Get-GitHubTeamByName {
function Get-GitHubRESTTeamByName {
<#
.SYNOPSIS
Get a team by name
Expand All @@ -8,7 +8,7 @@
and replaces spaces with a - separator. For example, "My TEam Näme" would become my-team-name.

.EXAMPLE
Get-GitHubTeamByName -Organization 'github' -Name 'my-team-name'
Get-GitHubRESTTeamByName -Organization 'github' -Name 'my-team-name'
#>
[OutputType([void])]
[CmdletBinding()]
Expand Down
4 changes: 2 additions & 2 deletions src/functions/private/Teams/Get-GitHubRESTTeamListByOrg.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Get-GitHubTeamListByOrg {
function Get-GitHubRESTTeamListByOrg {
<#
.SYNOPSIS
List teams
Expand All @@ -7,7 +7,7 @@
Lists all teams in an organization that are visible to the authenticated user.

.EXAMPLE
Get-GitHubTeamListByOrg -Organization 'github'
Get-GitHubRESTTeamListByOrg -Organization 'github'

.NOTES
[List teams](https://docs.github.com/rest/teams/teams#list-teams)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
Get-PSCallStackPath
First-Function\Second-Function\Third-Function

Shows the call stack of the last function called, Third-Function, with the first (<ScriptBlock>) and last (Get-PSCallStackPath) functions removed.
Shows the call stack of the last function called, Third-Function, with the first (<ScriptBlock>)
and last (Get-PSCallStackPath) functions removed.

.EXAMPLE
Get-PSCallStackPath -SkipFirst 0
Expand Down
24 changes: 15 additions & 9 deletions src/functions/public/API/Invoke-GitHubAPI.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@

process {
$Token = $Context.Token
Write-Debug "Token : [$Token]"
Write-Debug "Token : [$Token]"

if ([string]::IsNullOrEmpty($TokenType)) {
$TokenType = $Context.TokenType
}
Write-Debug "TokenType : [$($Context.TokenType)]"
Write-Debug "TokenType : [$($Context.TokenType)]"

if ([string]::IsNullOrEmpty($ApiBaseUri)) {
$ApiBaseUri = $Context.ApiBaseUri
Expand Down Expand Up @@ -194,6 +194,9 @@
'text/plain' {
$results = $response.Content
}
'text/html' {
$results = $response.Content
}
'application/octocat-stream' {
[byte[]]$byteArray = $response.Content
$results = [System.Text.Encoding]::UTF8.GetString($byteArray)
Expand Down Expand Up @@ -227,6 +230,9 @@
$headers = [pscustomobject]$headers
$sortedProperties = $headers.PSObject.Properties.Name | Sort-Object
$headers = $headers | Select-Object $sortedProperties
Write-Debug 'Response headers:'
$headers | Out-String -Stream | ForEach-Object { Write-Debug $_ }
Write-Debug '---------------------------'

$errordetails = $failure.ErrorDetails | ConvertFrom-Json -AsHashtable
$errorResult = [ordered]@{
Expand All @@ -239,13 +245,13 @@
$APICall.Headers = $APICall.Headers | ConvertTo-Json
$APICall.Method = $APICall.Method.ToString()

Write-Error '----------------------------------'
Write-Error 'Error details:'
$errorResult | Format-Table -AutoSize -HideTableHeaders | Out-String -Stream | ForEach-Object { Write-Error $_ }
Write-Error '----------------------------------'
Write-Debug 'Response headers:'
$headers | Out-String -Stream | ForEach-Object { Write-Debug $_ }
Write-Debug '---------------------------'
$errorResult = @"
----------------------------------
Error details:
$($errorResult | Format-Table -AutoSize -HideTableHeaders | Out-String)
----------------------------------
"@
Write-Error $errorResult
throw $failure.Exception.Message
}
}
Expand Down
1 change: 1 addition & 0 deletions src/functions/public/Actions/Disable-GitHubWorkflow.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.NOTES
[Disable a workflow](https://docs.github.com/en/rest/actions/workflows#disable-a-workflow)
#>
#SkipTest:FunctionTest:Will add a test for this function in a future PR
[CmdletBinding()]
param(
# The account owner of the repository. The name is not case sensitive.
Expand Down
1 change: 1 addition & 0 deletions src/functions/public/Actions/Enable-GitHubWorkflow.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.NOTES
[Enable a workflow](https://docs.github.com/en/rest/actions/workflows#enable-a-workflow)
#>
#SkipTest:FunctionTest:Will add a test for this function in a future PR
[CmdletBinding()]
param(
[Parameter()]
Expand Down
1 change: 1 addition & 0 deletions src/functions/public/Actions/Get-GitHubWorkflow.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
.NOTES
[List repository workflows](https://docs.github.com/rest/actions/workflows?apiVersion=2022-11-28#list-repository-workflows)
#>
#SkipTest:FunctionTest:Will add a test for this function in a future PR
[CmdletBinding(DefaultParameterSetName = 'ByName')]
param(
[Parameter()]
Expand Down
1 change: 1 addition & 0 deletions src/functions/public/Actions/Get-GitHubWorkflowRun.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
[List workflow runs for a workflow](https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow)
[List workflow runs for a repository](https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository)
#>
#SkipTest:FunctionTest:Will add a test for this function in a future PR
[CmdletBinding(DefaultParameterSetName = '__AllParameterSets')]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidLongLines', '', Justification = 'Contains a long link.')]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidAssignmentToAutomaticVariable', 'Event',
Expand Down
1 change: 1 addition & 0 deletions src/functions/public/Actions/Get-GitHubWorkflowUsage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
.NOTES
[Get workflow usage](https://docs.github.com/en/rest/actions/workflows#get-workflow-usage)
#>
#SkipTest:FunctionTest:Will add a test for this function in a future PR
[CmdletBinding(
DefaultParameterSetName = 'ByName'
)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
.NOTES
[Delete a workflow run](https://docs.github.com/rest/actions/workflow-runs#delete-a-workflow-run)
#>
#SkipTest:FunctionTest:Will add a test for this function in a future PR
[CmdletBinding(SupportsShouldProcess)]
param(
# The account owner of the repository. The name is not case sensitive.
Expand Down
1 change: 1 addition & 0 deletions src/functions/public/Actions/Start-GitHubWorkflow.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
.NOTES
[Create a workflow dispatch event](https://docs.github.com/en/rest/actions/workflows#create-a-workflow-dispatch-event)
#>
#SkipTest:FunctionTest:Will add a test for this function in a future PR
[CmdletBinding(SupportsShouldProcess)]
param(
# The account owner of the repository. The name is not case sensitive.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
.NOTES
[Re-run a workflow](https://docs.github.com/en/rest/actions/workflow-runs#re-run-a-workflow)
#>
#SkipTest:FunctionTest:Will add a test for this function in a future PR
[CmdletBinding(SupportsShouldProcess)]
param(
# The account owner of the repository. The name is not case sensitive.
Expand Down
1 change: 1 addition & 0 deletions src/functions/public/Actions/Stop-GitHubWorkflowRun.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
.NOTES
[Cancel a workflow run](https://docs.github.com/en/rest/actions/workflow-runs#cancel-a-workflow-run)
#>
#SkipTest:FunctionTest:Will add a test for this function in a future PR
[CmdletBinding(SupportsShouldProcess)]
[alias('Cancel-GitHubWorkflowRun')]
param(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
Creates an installation access token for the installation with the ID `12345678`.

.EXAMPLE
Connect-GitHub -ClientID $ClientID -PrivateKey $PrivateKey -Verbose
Connect-GitHub -ClientID $ClientID -PrivateKey $PrivateKey
Get-GitHubAppInstallation | New-GitHubAppInstallationAccessToken

Gets the GitHub App installations and creates an installation access token for each installation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@
url = $URL
content_type = $ContentType
secret = $Secret
insecure_ssl = $InsecureSSL ? 1 : 0
insecure_ssl = $PSBoundParameters.ContainsKey($InsecureSSL) ? ($InsecureSSL ? 1 : 0) : $null
}
$body | Remove-HashtableEntry -NullOrEmptyValues

$inputObject = @{
Context = $Context
Expand Down
2 changes: 1 addition & 1 deletion src/functions/public/Auth/Connect-GitHubApp.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Connect-GitHubApp {
function Connect-GitHubApp {
<#
.SYNOPSIS
Connects to GitHub as a installation using a GitHub App.
Expand Down
1 change: 1 addition & 0 deletions src/functions/public/Branches/Get-GitHubRepoBranch.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
.NOTES
[List branches](https://docs.github.com/rest/branches/branches#list-branches)
#>
#SkipTest:FunctionTest:Will add a test for this function in a future PR
[CmdletBinding()]
param(
# The account owner of the repository. The name is not case sensitive.
Expand Down
3 changes: 2 additions & 1 deletion src/functions/public/Commands/Set-GitHubOutput.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@

Write-Verbose "Output: [$Name] = [$Value]"

# If the script is running in a GitHub composite action, accumulate the output under the 'result' key, else append the key-value pair directly.
# If the script is running in a GitHub composite action, accumulate the output under the 'result' key,
# else append the key-value pair directly.
if ($env:PSMODULE_GITHUB_SCRIPT) {
if (-not $outputs.result) {
$outputs.result = @{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
.EXAMPLE
Get-GitHubEnterpriseInstallableOrganization -Enterprise 'msx'
#>
#SkipTest:FunctionTest:Will add a test for this function in a future PR
[CmdletBinding()]
param(
# The enterprise slug or ID.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
.EXAMPLE
Get-GitHubEnterpriseOrganization -Enterprise 'msx'
#>
#SkipTest:FunctionTest:Will add a test for this function in a future PR
[CmdletBinding()]
param(
[Parameter()]
Expand Down
Loading
Loading