Skip to content

[6.4.0] Update module versions for release #6541

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jun 29, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add additional logging and checks for change log check
  • Loading branch information
cormacpayne committed Jun 29, 2018
commit 7c79e26bcbcfa59c53637548ce898b8d690d5faf
9 changes: 8 additions & 1 deletion tools/CheckChangeLog.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ $PathsToCheck = @(
)

$PathStringsToIgnore = @(
"Test"
"Test",
".sln",
"Nuget.config",
".psd1"
)

$FilesChangedList = $FilesChanged -split ';'
Expand Down Expand Up @@ -45,6 +48,7 @@ foreach ($ChangeLog in $ChangeLogs)
}
}

$FlaggedFiles = @()
foreach ($File in $FilesChangedList)
{
if ($File -like "*ChangeLog.md*" -or $File -like "*.psd1*" -or $File -like "*.sln")
Expand All @@ -68,5 +72,8 @@ foreach ($File in $FilesChangedList)

if ($FlaggedFiles.Count -gt 0)
{
$message = "The following files were flagged for not having a change log entry:`n"
$FlaggedFiles | % { $message += "`t- $_`n" }
Write-Host $message
throw "Modified files were found with no update to their change log. Please add a snippet to the affected modules' change log."
}