From 78b42f021adfcf8bc09a53a94455d80073f93f9c Mon Sep 17 00:00:00 2001 From: marocchino Date: Sun, 30 May 2021 10:17:13 +0900 Subject: [PATCH] build: with new deps --- lib/comment.js | 2 +- lib/config.js | 8 ++++---- lib/main.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/comment.js b/lib/comment.js index 8d2b388..4489ee8 100644 --- a/lib/comment.js +++ b/lib/comment.js @@ -14,7 +14,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; diff --git a/lib/config.js b/lib/config.js index bf0efe8..a16e3d4 100644 --- a/lib/config.js +++ b/lib/config.js @@ -14,7 +14,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; @@ -28,9 +28,9 @@ exports.pullRequestNumber = ((_b = (_a = github_1.context === null || github_1.c +core.getInput('number', { required: false }); exports.repo = buildRepo(); exports.header = core.getInput('header', { required: false }); -exports.append = core.getInput('append', { required: true }) === 'true'; -exports.recreate = core.getInput('recreate', { required: true }) === 'true'; -exports.deleteOldComment = core.getInput('delete', { required: true }) === 'true'; +exports.append = core.getBooleanInput('append', { required: true }); +exports.recreate = core.getBooleanInput('recreate', { required: true }); +exports.deleteOldComment = core.getBooleanInput('delete', { required: true }); exports.githubToken = core.getInput('GITHUB_TOKEN', { required: true }); exports.body = buildBody(); function buildRepo() { diff --git a/lib/main.js b/lib/main.js index 407e460..597c89f 100644 --- a/lib/main.js +++ b/lib/main.js @@ -14,7 +14,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; };