Skip to content

Commit

Permalink
Minor enhancements for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-peterson committed Dec 12, 2023
1 parent 83c47a0 commit a0b5e77
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/GitlabCli/GitlabCli.psd1
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@{
ModuleVersion = '1.106.1'
ModuleVersion = '1.106.2'

PrivateData = @{
PSData = @{
LicenseUri = 'https://github.com/chris-peterson/pwsh-gitlab/blob/main/LICENSE'
ProjectUri = 'https://github.com/chris-peterson/pwsh-gitlab'
ReleaseNotes = 'Fix for updating an existing protected branch'
ReleaseNotes = 'Release enhancements'
}
}

Expand Down
4 changes: 3 additions & 1 deletion src/GitlabCli/Releases.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,7 @@ function Get-GitlabRelease {
$MaxPages = [uint]::MaxValue
}

Invoke-GitlabApi GET $Path -Query $Query -MaxPages $MaxPages | New-WrapperObject 'Gitlab.Release'
Invoke-GitlabApi GET $Path -Query $Query -MaxPages $MaxPages | New-WrapperObject 'Gitlab.Release' | ForEach-Object {
$_ | Add-Member -PassThru -NotePropertyMembers @{ ProjectId = $Project.Id }
}
}
4 changes: 4 additions & 0 deletions src/GitlabCli/Types.ps1xml
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,10 @@
<Name>Url</Name>
<GetScriptBlock>$this._links.self</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>BuildPipeline</Name>
<GetScriptBlock>$this.Assets.links | Where-Object name -match '^Build' | Select-Object -ExpandProperty url</GetScriptBlock>
</ScriptProperty>
</Members>
</Type>
</Types>

0 comments on commit a0b5e77

Please sign in to comment.