diff --git a/src/GitlabCli/GitlabCli.psd1 b/src/GitlabCli/GitlabCli.psd1 index 987f12c..222a9e0 100644 --- a/src/GitlabCli/GitlabCli.psd1 +++ b/src/GitlabCli/GitlabCli.psd1 @@ -1,5 +1,5 @@ @{ - ModuleVersion = '1.110.0' + ModuleVersion = '1.111.0' PrivateData = @{ PSData = @{ @@ -7,7 +7,7 @@ ProjectUri = 'https://github.com/chris-peterson/pwsh-gitlab' ReleaseNotes = @' -Tweak Merge-GitlabMergeRequest parameters +Rename Get-GitlabRunnerJobs to Get-GitlabRunnerJob (powershell naming convention) '@ } } @@ -199,7 +199,7 @@ Tweak Merge-GitlabMergeRequest parameters # Runners 'Get-GitlabRunner' - 'Get-GitlabRunnerJobs' + 'Get-GitlabRunnerJob' 'Update-GitlabRunner' 'Suspend-GitlabRunner' 'Resume-GitlabRunner' diff --git a/src/GitlabCli/Runners.psm1 b/src/GitlabCli/Runners.psm1 index 1355c09..b85d082 100644 --- a/src/GitlabCli/Runners.psm1 +++ b/src/GitlabCli/Runners.psm1 @@ -80,7 +80,7 @@ function Get-GitlabRunner { $Runners } -function Get-GitlabRunnerJobs { +function Get-GitlabRunnerJob { [CmdletBinding()] param ( [Parameter(Mandatory, Position=0, ValueFromPipelineByPropertyName)] @@ -96,6 +96,7 @@ function Get-GitlabRunnerJobs { $SiteUrl ) + # https://docs.gitlab.com/ee/api/runners.html#list-runners-jobs $Params = @{ HttpMethod = 'GET' Path = "runners/$RunnerId/jobs" @@ -103,7 +104,6 @@ function Get-GitlabRunnerJobs { SiteUrl = $SiteUrl } - # https://docs.gitlab.com/ee/api/runners.html#list-runners-jobs Invoke-GitlabApi @Params | New-WrapperObject 'Gitlab.RunnerJob' }