From e5b1abe130e3fd90cded5b4bc974c5f5a8696b8d Mon Sep 17 00:00:00 2001 From: Sibiraj Date: Sun, 27 Feb 2022 08:25:44 +0530 Subject: [PATCH] build: update distribution --- dist/index.js | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/dist/index.js b/dist/index.js index f4a2a38..d75536f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1074,31 +1074,30 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); const core = __importStar(__nccwpck_require__(2186)); const create_pull_request_1 = __nccwpck_require__(3780); const util_1 = __nccwpck_require__(3837); -const utils = __importStar(__nccwpck_require__(918)); function run() { return __awaiter(this, void 0, void 0, function* () { try { const inputs = { token: core.getInput('token'), path: core.getInput('path'), - addPaths: utils.getInputAsArray('add-paths'), + addPaths: core.getMultilineInput('add-paths'), commitMessage: core.getInput('commit-message'), committer: core.getInput('committer'), author: core.getInput('author'), - signoff: core.getInput('signoff') === 'true', + signoff: core.getBooleanInput('signoff'), branch: core.getInput('branch'), - deleteBranch: core.getInput('delete-branch') === 'true', + deleteBranch: core.getBooleanInput('delete-branch'), branchSuffix: core.getInput('branch-suffix'), base: core.getInput('base'), pushToFork: core.getInput('push-to-fork'), title: core.getInput('title'), body: core.getInput('body'), - labels: utils.getInputAsArray('labels'), - assignees: utils.getInputAsArray('assignees'), - reviewers: utils.getInputAsArray('reviewers'), - teamReviewers: utils.getInputAsArray('team-reviewers'), + labels: core.getMultilineInput('labels'), + assignees: core.getMultilineInput('assignees'), + reviewers: core.getMultilineInput('reviewers'), + teamReviewers: core.getMultilineInput('team-reviewers'), milestone: Number(core.getInput('milestone')), - draft: core.getInput('draft') === 'true' + draft: core.getBooleanInput('draft') }; core.debug(`Inputs: ${(0, util_1.inspect)(inputs)}`); yield (0, create_pull_request_1.createPullRequest)(inputs); @@ -1164,21 +1163,10 @@ var __importStar = (this && this.__importStar) || function (mod) { return result; }; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fileExistsSync = exports.parseDisplayNameEmail = exports.randomString = exports.secondsSinceEpoch = exports.getRemoteUrl = exports.getRemoteDetail = exports.getRepoPath = exports.getStringAsArray = exports.getInputAsArray = void 0; +exports.fileExistsSync = exports.parseDisplayNameEmail = exports.randomString = exports.secondsSinceEpoch = exports.getRemoteUrl = exports.getRemoteDetail = exports.getRepoPath = void 0; const core = __importStar(__nccwpck_require__(2186)); const fs = __importStar(__nccwpck_require__(7147)); const path = __importStar(__nccwpck_require__(1017)); -function getInputAsArray(name, options) { - return getStringAsArray(core.getInput(name, options)); -} -exports.getInputAsArray = getInputAsArray; -function getStringAsArray(str) { - return str - .split(/[\n,]+/) - .map(s => s.trim()) - .filter(x => x !== ''); -} -exports.getStringAsArray = getStringAsArray; function getRepoPath(relativePath) { let githubWorkspacePath = process.env['GITHUB_WORKSPACE']; if (!githubWorkspacePath) {