From 20dffb5f1dbdd14e8a0e390dbf3eaf04ef056e1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=83=E5=87=9B?= Date: Thu, 10 Feb 2022 10:49:12 +0800 Subject: [PATCH] test: con --- dist/index.js | 5 ++++- src/helper/advanced.ts | 1 + src/helper/helper.ts | 2 +- src/main.ts | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 69e8506..a6d8453 100644 --- a/dist/index.js +++ b/dist/index.js @@ -14622,6 +14622,7 @@ const util_1 = __nccwpck_require__(9604); const base_1 = __nccwpck_require__(8824); let ICE; function initAdvancedICE(_ICE) { + console.log(_ICE); ICE = _ICE; } exports.initAdvancedICE = initAdvancedICE; @@ -15301,7 +15302,7 @@ class IssueHelperEngine { } doExeAction(action) { return __awaiter(this, void 0, void 0, function* () { - const { owner, repo, issueNumber, emoji, labels, assignees, title, body, updateMode, state, ctx } = this; + const { issueNumber, emoji, labels, assignees, title, body, updateMode, state, ctx } = this; switch (action) { // ---[ Base Begin ]--->>> case 'add-assignees': { @@ -15905,8 +15906,10 @@ function main() { return __awaiter(this, void 0, void 0, function* () { try { const actions = core.getInput('actions', { required: true }); + console.log(actions); const IHE = new helper_1.IssueHelperEngine(github.context); for (const action of (0, actions_util_1.dealStringToArr)(actions)) { + console.log(action); yield IHE.doExeAction(action); } core.baseInfo(`\n${actions_util_1.THANKS}`); diff --git a/src/helper/advanced.ts b/src/helper/advanced.ts index 0ec2210..f3717c2 100644 --- a/src/helper/advanced.ts +++ b/src/helper/advanced.ts @@ -19,6 +19,7 @@ import { let ICE: IIssueCoreEngine; export function initAdvancedICE(_ICE: IIssueCoreEngine) { + console.log(_ICE) ICE = _ICE; } diff --git a/src/helper/helper.ts b/src/helper/helper.ts index c6dd698..0024418 100644 --- a/src/helper/helper.ts +++ b/src/helper/helper.ts @@ -112,7 +112,7 @@ export class IssueHelperEngine implements IIssueHelperEngine { } public async doExeAction(action: TAction) { - const { owner, repo, issueNumber, emoji, labels, assignees, title, body, updateMode, state, ctx } = this; + const { issueNumber, emoji, labels, assignees, title, body, updateMode, state, ctx } = this; switch (action) { // ---[ Base Begin ]--->>> case 'add-assignees': { diff --git a/src/main.ts b/src/main.ts index cf514d7..ece1714 100644 --- a/src/main.ts +++ b/src/main.ts @@ -9,8 +9,10 @@ import type { TAction } from './types'; async function main() { try { const actions = core.getInput('actions', { required: true }) as string; + console.log(actions) const IHE = new IssueHelperEngine(github.context); for (const action of dealStringToArr(actions)) { + console.log(action) await IHE.doExeAction(action as TAction); } core.baseInfo(`\n${THANKS}`);