mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
chore: Remove changelog script that converts titles
The new version of commit-and-tag-version does this automatically now
This commit is contained in:
parent
700668ee3e
commit
163f5e8f17
@ -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');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user