@@ -37,10 +37,13 @@ function Get-Bullets {
37
37
' TylerLeonhardt'
38
38
)
39
39
40
- $LabelEmoji = @ {
40
+ $IssueEmojis = @ {
41
41
' Issue-Enhancement' = ' ✨'
42
42
' Issue-Bug' = ' 🐛'
43
43
' Issue-Performance' = ' ⚡️'
44
+ }
45
+
46
+ $AreaEmojis = @ {
44
47
' Area-Build & Release' = ' 👷'
45
48
' Area-Code Formatting' = ' 💎'
46
49
' Area-Configuration' = ' 🔧'
@@ -81,12 +84,9 @@ function Get-Bullets {
81
84
process {
82
85
$PullRequests | ForEach-Object {
83
86
# Map all the labels to emoji (or use a default).
84
- # NOTE: Whitespacing here is weird.
85
- $emoji = if ($_.labels ) {
86
- $LabelEmoji [$_.labels.LabelName ] -join " "
87
- } else {
88
- ' #️⃣ 🙏'
89
- }
87
+ $labels = if ($_.labels ) { $_.labels.LabelName } else { " " }
88
+ $issueEmoji = $IssueEmojis [$labels ] + " #️⃣" | Select-Object - First 1
89
+ $areaEmoji = $AreaEmojis [$labels ] + " 🙏" | Select-Object - First 1
90
90
91
91
# Get a linked issue number if it exists (or use the PR).
92
92
$link = if ($_.body -match $IssueRegex ) {
@@ -105,7 +105,7 @@ function Get-Bullets {
105
105
}
106
106
107
107
# Put the bullet point together.
108
- (" -" , $emoji , " [$link ]($ ( $_.html_url ) )" , " -" , " $ ( $_.title ) ." , $thanks -join " " ).Trim()
108
+ (" -" , $issueEmoji , $areaEmoji , " [$link ]($ ( $_.html_url ) )" , " -" , " $ ( $_.title ) ." , $thanks -join " " ).Trim()
109
109
}
110
110
}
111
111
}
@@ -250,18 +250,18 @@ function Update-Changelog {
250
250
. DESCRIPTION
251
251
Note that our Git tags and changelog prefix all versions with `v`.
252
252
253
- PowerShellEditorServices: version is `x.y.z -preview.d `
253
+ PowerShellEditorServices: version is `X.Y.Z -preview`
254
254
255
255
- PowerShellEditorServices.psd1:
256
- - `ModuleVersion` variable with `'x.y.z '` string, no pre-release info
256
+ - `ModuleVersion` variable with `'X.Y.Z '` string, no pre-release info
257
257
- PowerShellEditorServices.Common.props:
258
- - `VersionPrefix` field with `x.y.z `
258
+ - `VersionPrefix` field with `X.Y.Z `
259
259
- `VersionSuffix` field with pre-release portion excluding hyphen
260
260
261
- vscode-powershell: version is `yyyy.mm.x -preview`
261
+ vscode-powershell: version is `YYYY.M.X -preview`
262
262
263
263
- package.json:
264
- - `version` field with `"x.y.z "` and no prefix or suffix
264
+ - `version` field with `"X.Y.Z "` and no prefix or suffix
265
265
- `preview` field set to `true` or `false` if version is a preview
266
266
- `name` field has `-preview` appended similarly
267
267
- `displayName` field has ` Preview` appended similarly
0 commit comments