From 304ef3a41972f031ea67fa705ed37a811f37d1b1 Mon Sep 17 00:00:00 2001 From: BelKed <66956532+BelKed@users.noreply.github.com> Date: Mon, 4 Oct 2021 18:55:01 +0200 Subject: [PATCH] Fix `sort` option (#49) Co-authored-by: Federico --- distribution/index.js | 4 ++-- index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/distribution/index.js b/distribution/index.js index cca37cc..f6c7170 100644 --- a/distribution/index.js +++ b/distribution/index.js @@ -264,7 +264,7 @@ async function run() { const commitTemplate = core_default().getInput('commit-template'); const exclude = core_default().getInput('exclude'); const dateFormat = core_default().getInput('date-format'); - const reverseSort = core_default().getInput('reverse-sort'); + const sort = core_default().getInput('sort'); const isDraft = core_default().getInput('draft') === 'true'; const isPrerelease = core_default().getInput('prerelease') === 'true'; const skipOnEmpty = core_default().getInput('skip-on-empty') === 'true'; @@ -297,7 +297,7 @@ async function run() { core_default().info('Computed range: ' + range); - const releaseNotes = await generateReleaseNotes({range, exclude, commitTemplate, releaseTemplate, dateFormat, reverseSort, skipOnEmpty}); + const releaseNotes = await generateReleaseNotes({range, exclude, commitTemplate, releaseTemplate, dateFormat, sort, skipOnEmpty}); // Skip creating release if no commits // Explicit check to avoid matching an empty string https://github.com/fregante/release-with-changelog/pull/48#discussion_r719593452 diff --git a/index.js b/index.js index 091b744..48b55ce 100644 --- a/index.js +++ b/index.js @@ -16,7 +16,7 @@ async function run() { const commitTemplate = core.getInput('commit-template'); const exclude = core.getInput('exclude'); const dateFormat = core.getInput('date-format'); - const reverseSort = core.getInput('reverse-sort'); + const sort = core.getInput('sort'); const isDraft = core.getInput('draft') === 'true'; const isPrerelease = core.getInput('prerelease') === 'true'; const skipOnEmpty = core.getInput('skip-on-empty') === 'true'; @@ -49,7 +49,7 @@ async function run() { core.info('Computed range: ' + range); - const releaseNotes = await generateReleaseNotes({range, exclude, commitTemplate, releaseTemplate, dateFormat, reverseSort, skipOnEmpty}); + const releaseNotes = await generateReleaseNotes({range, exclude, commitTemplate, releaseTemplate, dateFormat, sort, skipOnEmpty}); // Skip creating release if no commits // Explicit check to avoid matching an empty string https://github.com/fregante/release-with-changelog/pull/48#discussion_r719593452