From 06477146cda1700a641367412e0993a768b76b65 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Mon, 15 Aug 2022 13:56:23 -0700 Subject: [PATCH] fix: default labels should be undefined (#566) --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 0ca70ef..e76ab49 100644 --- a/index.js +++ b/index.js @@ -129,14 +129,14 @@ async function manifestInstance (github) { const component = core.getInput('component') || undefined const includeVInTag = core.getBooleanInput('include-v-in-tag') const tagSeparator = core.getInput('tag-separator') || undefined - const snapshotLabels = core.getMultilineInput('snapshot-labels') || undefined + const snapshotLabels = core.getInput('snapshot-labels') ? core.getMultilineInput('snapshot-labels') : undefined const bootstrapSha = core.getInput('bootstrap-sha') || undefined const lastReleaseSha = core.getInput('last-release-sha') || undefined const alwaysLinkLocal = core.getBooleanInput('always-link-local') const separatePullRequests = core.getBooleanInput('separate-pull-requests') const plugins = core.getMultilineInput('plugins') || undefined - const labels = core.getMultilineInput('labels') || undefined - const releaseLabels = core.getMultilineInput('release-labels') || undefined + const labels = core.getInput('labels') ? core.getMultilineInput('labels') : undefined + const releaseLabels = core.getInput('release-labels') ? core.getMultilineInput('release-labels') : undefined const skipLabeling = core.getBooleanInput('skip-labeling') const sequentialCalls = core.getBooleanInput('sequential-calls') const groupPullRequestTitlePattern = core.getInput('group-pull-request-title-pattern') || undefined