From 05b0499270da849912e83c670428c1be468cd7a8 Mon Sep 17 00:00:00 2001 From: Nick Cipollo Date: Mon, 25 May 2020 17:35:27 -0400 Subject: [PATCH] Change back to debug --- lib/Inputs.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/Inputs.js b/lib/Inputs.js index ff61295..a6db0b0 100644 --- a/lib/Inputs.js +++ b/lib/Inputs.js @@ -34,6 +34,8 @@ class CoreInputs { return []; } get body() { + if (CoreInputs.omitBody()) + return undefined; const body = core.getInput('body'); if (body) { return body; @@ -44,6 +46,9 @@ class CoreInputs { } return ''; } + static omitBody() { + return core.getInput('omitBody') == 'true'; + } get commit() { return core.getInput('commit'); } @@ -52,12 +57,17 @@ class CoreInputs { return draft == 'true'; } get name() { + if (CoreInputs.omitName()) + return undefined; const name = core.getInput('name'); if (name) { return name; } return this.tag; } + static omitName() { + return core.getInput('omitName') == 'true'; + } get prerelease() { const preRelease = core.getInput('prerelease'); return preRelease == 'true';