diff --git a/eng/tools/versioning/VersionUtils.js b/eng/tools/versioning/VersionUtils.js index 1d2646f04fbc..ea9661aef790 100644 --- a/eng/tools/versioning/VersionUtils.js +++ b/eng/tools/versioning/VersionUtils.js @@ -38,14 +38,24 @@ function updateChangelog( repoRoot, newVersion, unreleased, - replaceVersion, + replaceLatestVersionTitle, releaseDate = null ) { const service = path.basename(path.dirname(targetPackagePath)); const updateChangelogPath = path.resolve( path.join(repoRoot, "eng/common/scripts/Update-ChangeLog.ps1") ); - let args = [updateChangelogPath, newVersion, service, packageName, unreleased, replaceVersion]; + let args = [ + updateChangelogPath, + "--Version", + newVersion, + "--ServiceDirectory", + service, + "--PackageName", + packageName, + "--Unreleased:$" + unreleased, + "--ReplaceLatestEntryTitle:$" + replaceLatestVersionTitle + ]; if (releaseDate != null) { args.push(releaseDate); }