diff --git a/index.js b/index.js index bbcb741..78367e0 100644 --- a/index.js +++ b/index.js @@ -11,12 +11,12 @@ async function main () { const path = core.getInput('path') ? core.getInput('path') : undefined const releaseType = core.getInput('release-type') const token = core.getInput('token') - const changelogTypes = core.getInput('changelog-types'); + const changelogTypes = core.getInput('changelog-types') // Parse the changelogTypes if there are any - let changelogSections = []; + let changelogSections = [] if (changelogTypes) { - changelogSections = JSON.parse(changelogTypes); + changelogSections = JSON.parse(changelogTypes) } // First we check for any merged release PRs (PRs merged with the label