Skip to content

Commit

Permalink
Bugfix in get job cmdlet
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-peterson committed Oct 16, 2024
1 parent 96c2a10 commit 19f3f3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/GitlabCli/GitlabCli.psd1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@{
ModuleVersion = '1.119.3'
ModuleVersion = '1.119.4'

RequiredModules = @('powershell-yaml')

Expand Down Expand Up @@ -27,7 +27,7 @@
ExternalModuleDependencies = @('powershell-yaml')
ReleaseNotes =
@'
* bugfix: support non-expiring PATs
* bugfix: get job cmdlet parameter group confusion
'@
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/GitlabCli/Jobs.psm1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function Get-GitlabJob {
[Alias('job')]
[Alias('jobs')]
[CmdletBinding()]
[CmdletBinding(DefaultParameterSetName='Query')]
param (
[Parameter(ValueFromPipelineByPropertyName)]
[string]
Expand All @@ -11,12 +11,12 @@ function Get-GitlabJob {
[string]
$PipelineId,

[Parameter(ParameterSetName='ByJobId', Mandatory)]
[Parameter(ParameterSetName='ById', Mandatory)]
[Alias('Id')]
[string]
$JobId,

[Parameter()]
[Parameter(ParameterSetName='Query')]
[string]
[ValidateSet('created', 'pending', 'running', 'failed', 'success', 'canceled', 'skipped', 'manual')]
$Scope,
Expand All @@ -29,7 +29,7 @@ function Get-GitlabJob {
[string]
$Name,

[Parameter()]
[Parameter(ParameterSetName='ByPipeline')]
[switch]
$IncludeRetried,

Expand Down

0 comments on commit 19f3f3a

Please sign in to comment.