Skip to content

Commit 9f61ff9

Browse files
committed
Minor code cleanup
1 parent 74e4535 commit 9f61ff9

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

tool/releaseTools.psm1

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,13 @@ function Get-Bullet {
4747
#>
4848
function Get-Changelog {
4949
# This will take some time because it has to pull all PRs and then filter
50-
$script:PullRequests = $script:Repo | Get-GitHubPullRequest -State 'closed' |
51-
Where-Object { $_.labels.LabelName -match 'Release' } |
52-
Where-Object { -not $_.title.StartsWith("[WIP]") } |
53-
Where-Object { -not $_.title.StartsWith("WIP") }
50+
$script:PullRequests = $script:Repo |
51+
Get-GitHubPullRequest -State 'closed' |
52+
Where-Object -FilterScript {
53+
$_.labels.LabelName -match 'Release' -and
54+
-not $_.title.StartsWith("[WIP]") -and
55+
-not $_.title.StartsWith("WIP")
56+
}
5457

5558
$PullRequests | ForEach-Object {
5659
if ($_.labels.LabelName -match 'PR-Bug') {

0 commit comments

Comments
 (0)