Skip to content

Commit

Permalink
move up
Browse files Browse the repository at this point in the history
  • Loading branch information
MrVauxs committed Jul 21, 2024
1 parent b0304a8 commit 8cd6975
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 8cd6975

Please sign in to comment.