From 8cd6975b7393c4aea4dc6a451f9ea3e05d197a0a Mon Sep 17 00:00:00 2001 From: mrvauxs Date: Sun, 21 Jul 2024 11:56:55 +0200 Subject: [PATCH] move up --- bin.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin.ts b/bin.ts index 070630c47..88575e7cc 100755 --- a/bin.ts +++ b/bin.ts @@ -38,6 +38,7 @@ try { const changelog = parser(Deno.readTextFileSync(file)); changelog.format = argv.format as "compact" | "markdownlint"; + changelog.tagPrefix = argv.tagPrefix; if (argv["latest-release"]) { const release = changelog.releases.find((release) => @@ -92,10 +93,6 @@ try { function save(file: string, changelog: Changelog, isNew = false) { changelog.url = argv.url || changelog.url || getRemoteUrl(argv.https); - if (argv.tagPrefix) { - changelog.tagPrefix = argv.tagPrefix; - } - if (!changelog.url) { console.error( red(