Skip to content

Commit 564c3fd

Browse files
committed
Improve updateChangelog.ps1
Ignore self and other bots, and open PR as draft.
1 parent ce41617 commit 564c3fd

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

tools/ChangelogTools.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ filter Skip-IgnoredChange
340340
$Change,
341341

342342
[Parameter()]
343-
[string]
343+
[string[]]
344344
$User,
345345

346346
[Parameter()]

tools/GitHubTools.psm1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@ function New-GitHubPR
549549
body = $Description
550550
head = $Branch
551551
base = $TargetBranch
552+
draft = $true
552553
maintainer_can_modify = $true
553554
} | ConvertTo-Json
554555

tools/changelog/updateChangelog.ps1

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,17 @@ $psesRepoName = 'PowerShellEditorServices'
163163
$dateFormat = 'dddd, MMMM dd, yyyy'
164164

165165
$ignore = @{
166-
User = 'dependabot[bot]'
166+
User = 'dependabot[bot]','dependabot-preview[bot]','github-actions[bot]'
167167
CommitLabel = 'Ignore'
168168
}
169169

170170
$noThanks = @(
171-
'rjmholt'
172-
'TylerLeonhardt'
171+
'andschwa'
173172
'daxian-dbw'
174-
'SteveL-MSFT'
175173
'PaulHigin'
174+
'rjmholt'
175+
'SteveL-MSFT'
176+
'TylerLeonhardt'
176177
)
177178

178179
$categories = [ordered]@{

tools/postReleaseScripts/publishGHRelease.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ function GetDescriptionFromChangelog
6363
$tag = "v$Version"
6464

6565
$releaseParams = @{
66+
Draft = $true
6667
Organization = $TargetFork
6768
Repository = $Repository
6869
Tag = $tag
6970
ReleaseName = $tag
70-
Branch = "release/$Version"
7171
AssetPath = $AssetPath
7272
Prerelease = [bool]($Version.PreReleaseLabel)
7373
Description = GetDescriptionFromChangelog -ChangelogPath $ChangelogPath

0 commit comments

Comments
 (0)