File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,22 @@ class ChangeLog
51
51
[System.Collections.Generic.Dictionary [string , ChangelogEntry ]]$Sections
52
52
}
53
53
54
+ function NormalizeSubject
55
+ {
56
+ [OutputType ([string ])]
57
+ param (
58
+ [Parameter (Mandatory )]
59
+ [string ]
60
+ $Subject
61
+ )
62
+
63
+ $Subject = $Subject.Trim ()
64
+ if ([char ]::IsLower($Subject [0 ])) { $Subject = [char ]::ToUpper($Subject [0 ]) + $Subject.Substring (1 ) }
65
+ if ($Subject [$Subject.Length ] -ne ' .' ) { $Subject += ' .' }
66
+
67
+ return $Subject
68
+ }
69
+
54
70
filter Get-ChangeInfoFromCommit
55
71
{
56
72
[OutputType ([ChangeInfo ])]
@@ -296,7 +312,7 @@ function New-ChangeLogSection
296
312
[void ]$sb.AppendLine (" [$project #$issueNumber ]($link ) -" ).Append($Indent )
297
313
}
298
314
299
- [void ]$sb.Append ($item.Subject )
315
+ [void ]$sb.Append ((NormalizeSubject - Subject $item.Subject ) )
300
316
if ($thanks )
301
317
{
302
318
[void ]$sb.Append (" (Thanks @$thanks !)" )
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ Write-Verbose "Configuring settings"
78
78
$vscodeRepoName = ' vscode-PowerShell'
79
79
$psesRepoName = ' PowerShellEditorServices'
80
80
81
- $dateFormat = ' dddd, MMMM dd yyyy'
81
+ $dateFormat = ' dddd, MMMM dd, yyyy'
82
82
83
83
$ignore = @ {
84
84
User = ' dependabot[bot]'
You can’t perform that action at this time.
0 commit comments