@@ -46,27 +46,27 @@ function Resolve-WorkflowEventRouting {
4646 )
4747
4848 [pscustomobject ]@ {
49- IsPR = $isPR
50- IsPush = $isPush
51- IsManualDispatch = $isManualDispatch
52- IsOpenOrUpdatedPR = $isOpenOrUpdatedPR
53- IsOpenOrLabeledPR = $isOpenOrLabeledPR
54- IsClosedPR = $isClosedPR
55- IsAbandonedPR = $isAbandonedPR
56- IsMergedPR = $isMergedPR
57- IsTargetDefaultBranch = $IsTargetDefaultBranch
58- IsPushToDefaultBranch = $IsPushToDefaultBranch
49+ IsPR = $isPR
50+ IsPush = $isPush
51+ IsManualDispatch = $isManualDispatch
52+ IsOpenOrUpdatedPR = $isOpenOrUpdatedPR
53+ IsOpenOrLabeledPR = $isOpenOrLabeledPR
54+ IsClosedPR = $isClosedPR
55+ IsAbandonedPR = $isAbandonedPR
56+ IsMergedPR = $isMergedPR
57+ IsTargetDefaultBranch = $IsTargetDefaultBranch
58+ IsPushToDefaultBranch = $IsPushToDefaultBranch
5959 IsManualDispatchToDefaultBranch = $IsManualDispatchToDefaultBranch
60- ShouldPrerelease = $shouldPrerelease
61- ReleaseType = if ($shouldRelease ) {
60+ ShouldPrerelease = $shouldPrerelease
61+ ReleaseType = if ($shouldRelease ) {
6262 ' Release'
6363 } elseif ($shouldPrerelease ) {
6464 ' Prerelease'
6565 } else {
6666 ' None'
6767 }
68- ShouldRunBuildTest = (-not $isClosedPR ) -and $HasImportantChanges
69- ShouldCleanupEvent = $isClosedPR
68+ ShouldRunBuildTest = (-not $isClosedPR ) -and $HasImportantChanges
69+ ShouldCleanupEvent = $isClosedPR
7070 }
7171}
7272
@@ -106,7 +106,7 @@ function Get-FilesFromGitTree {
106106 Returns the files contained in a complete Git tree response.
107107 #>
108108 [CmdletBinding ()]
109- [OutputType ([string [] ])]
109+ [OutputType ([string ])]
110110 param (
111111 [Parameter (Mandatory )]
112112 [PSCustomObject ] $Tree
@@ -116,7 +116,7 @@ function Get-FilesFromGitTree {
116116 throw ' Cannot determine changed files because the Git tree response was truncated.'
117117 }
118118
119- @ ( $Tree.tree |
119+ $Tree.tree |
120120 Where-Object { $_.type -eq ' blob' } |
121- Select-Object - ExpandProperty path)
121+ Select-Object - ExpandProperty path
122122}
0 commit comments