File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
pipelines/templates/steps Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,17 @@ parameters:
44- name : Condition
55 type : string
66 default : succeeded()
7+ - name : ForRelease
8+ type : boolean
9+ default : false
710
811steps :
912 - task : Powershell@2
1013 inputs :
1114 filePath : $(Build.SourcesDirectory)/eng/common/scripts/Verify-ChangeLogs.ps1
1215 arguments : >
1316 -PackagePropertiesFolder '${{ parameters.PackagePropertiesFolder }}'
17+ -ForRelease $${{ parameters.ForRelease }}
1418 pwsh : true
1519 displayName : Verify ChangeLogEntries
1620 condition : ${{ parameters.Condition }}
Original file line number Diff line number Diff line change 11# Wrapper Script for ChangeLog Verification in a PR
22[CmdletBinding ()]
33param (
4- [String ]$PackagePropertiesFolder
4+ [String ]$PackagePropertiesFolder ,
5+ [boolean ]$ForRelease = $False
56)
67Set-StrictMode - Version 3
78
@@ -33,7 +34,9 @@ foreach($propertiesFile in $packageProperties) {
3334 continue
3435 }
3536
36- $validChangeLog = Confirm-ChangeLogEntry - ChangeLogLocation $PackageProp.ChangeLogPath - VersionString $PackageProp.Version - ForRelease $false
37+ Write-Host " Verifying changelog for $ ( $PackageProp.Name ) "
38+
39+ $validChangeLog = Confirm-ChangeLogEntry - ChangeLogLocation $PackageProp.ChangeLogPath - VersionString $PackageProp.Version - ForRelease $ForRelease
3740
3841 if (-not $validChangeLog ) {
3942 $allPassing = $false
You can’t perform that action at this time.
0 commit comments