chore: Remove changelog script that converts titles

The new version of commit-and-tag-version does this automatically now
This commit is contained in:
Joachim Van Herwegen 2023-02-01 09:34:31 +01:00
parent 700668ee3e
commit 163f5e8f17

View File

@ -21,15 +21,6 @@ async function capitalizeListEntries(input: string): Promise<string> {
return input.replace(/^(\W*\* [a-z])/gmu, (match): string => match.toUpperCase());
}
/**
* Change all version titles to H2 ("### [vX.Y.Z]" to "## [vX.Y.Z]")
* @param input - String to search/replace
* @returns Promise with output string
*/
async function convertH3ToH2(input: string): Promise<string> {
return input.replace(/### \[/gu, '## [');
}
/**
* Ends the process and writes out an error in case something goes wrong.
*/
@ -45,7 +36,6 @@ function endProcess(error: Error): never {
*/
async function formatChangelog(filePath: string): Promise<void> {
let changelog = await readFile(filePath, 'utf8');
changelog = await convertH3ToH2(changelog);
changelog = await capitalizeListEntries(changelog);
return writeFile(filePath, changelog, 'utf8');
}