Public/Milestones/Close-GitLabMilestone.ps1
Function Close-GitLabMilestone { [cmdletbinding()] param( [Alias('project_id')] [ValidateNotNullOrEmpty()] [Parameter(ValueFromPipelineByPropertyName,Mandatory)] [string]$ProjectId, [ValidateNotNullOrEmpty()] [Parameter(ValueFromPipelineByPropertyName,Mandatory)] [string[]]$ID, [switch]$Passthru ) BEGIN {} PROCESS { foreach ( $MergeRequestID in $ID ) { $Results = Set-GitLabMilestone -Project $ProjectId -Id $ID -StateEvent close if ( $Passthru.isPresent ) { $Results } } } END {} } |