File tree 1 file changed +8
-14
lines changed
1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -300,30 +300,24 @@ function Get-ChangeLog
300
300
$new_commits = $new_commits_during_last_release + $new_commits_after_last_release
301
301
}
302
302
303
+ $new_commits = $new_commits | Where-Object { -not $_.Subject.StartsWith (' [Ignore]' , [System.StringComparison ]::OrdinalIgnoreCase) }
304
+
303
305
foreach ($commit in $new_commits ) {
304
306
$messageParts = Get-PRNumberFromCommitSubject $commit.Subject
305
- if ($messageParts )
306
- {
307
+ if ($messageParts ) {
307
308
$message = $messageParts.Message
308
309
$prNumber = $messageParts.PR
309
- }
310
- else
311
- {
310
+ } else {
312
311
$message = $commit.Subject
313
312
}
314
313
315
- if (-not ($commit.AuthorEmail.EndsWith (" @microsoft.com" ) -or ($powershell_team -contains $commit.AuthorName ) -or ($powershell_team_emails -contains $commit.AuthorEmail )))
316
- {
317
- if ($Script :community_login_map.ContainsKey ($commit.AuthorEmail ))
318
- {
314
+ if (-not ($commit.AuthorEmail.EndsWith (" @microsoft.com" ) -or ($powershell_team -contains $commit.AuthorName ) -or ($powershell_team_emails -contains $commit.AuthorEmail ))) {
315
+ if ($Script :community_login_map.ContainsKey ($commit.AuthorEmail )) {
319
316
$commit.AuthorGitHubLogin = $Script :community_login_map [$commit.AuthorEmail ]
320
- }
321
- else
322
- {
317
+ } else {
323
318
$uri = " $RepoUri /commits/$ ( $commit.Hash ) "
324
319
$response = Invoke-WebRequest - Uri $uri - Method Get - Headers $header - ErrorAction SilentlyContinue
325
- if ($response )
326
- {
320
+ if ($response ) {
327
321
$content = ConvertFrom-Json - InputObject $response.Content
328
322
$commit.AuthorGitHubLogin = $content.author.login
329
323
$Script :community_login_map [$commit.AuthorEmail ] = $commit.AuthorGitHubLogin
You can’t perform that action at this time.
0 commit comments