Skip to content

Commit

Permalink
Rename cmdlet
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-peterson committed Jul 2, 2024
1 parent 240bd8e commit edad03c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/GitlabCli/GitlabCli.psd1
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
@{
ModuleVersion = '1.110.0'
ModuleVersion = '1.111.0'

PrivateData = @{
PSData = @{
LicenseUri = 'https://github.com/chris-peterson/pwsh-gitlab/blob/main/LICENSE'
ProjectUri = 'https://github.com/chris-peterson/pwsh-gitlab'
ReleaseNotes =
@'
Tweak Merge-GitlabMergeRequest parameters
Rename Get-GitlabRunnerJobs to Get-GitlabRunnerJob (powershell naming convention)
'@
}
}
Expand Down Expand Up @@ -199,7 +199,7 @@ Tweak Merge-GitlabMergeRequest parameters

# Runners
'Get-GitlabRunner'
'Get-GitlabRunnerJobs'
'Get-GitlabRunnerJob'
'Update-GitlabRunner'
'Suspend-GitlabRunner'
'Resume-GitlabRunner'
Expand Down
4 changes: 2 additions & 2 deletions src/GitlabCli/Runners.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function Get-GitlabRunner {
$Runners
}

function Get-GitlabRunnerJobs {
function Get-GitlabRunnerJob {
[CmdletBinding()]
param (
[Parameter(Mandatory, Position=0, ValueFromPipelineByPropertyName)]
Expand All @@ -96,14 +96,14 @@ function Get-GitlabRunnerJobs {
$SiteUrl
)

# https://docs.gitlab.com/ee/api/runners.html#list-runners-jobs
$Params = @{
HttpMethod = 'GET'
Path = "runners/$RunnerId/jobs"
MaxPages = $MaxPages
SiteUrl = $SiteUrl
}

# https://docs.gitlab.com/ee/api/runners.html#list-runners-jobs
Invoke-GitlabApi @Params | New-WrapperObject 'Gitlab.RunnerJob'
}

Expand Down

0 comments on commit edad03c

Please sign in to comment.