From 1eb674f1530c0632c31c7655d80750172aa1679b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=83=E5=87=9B?= Date: Mon, 14 Feb 2022 09:52:39 +0800 Subject: [PATCH] style: update info --- dist/index.js | 8 ++++---- src/helper/advanced.ts | 4 ++-- src/helper/helper.ts | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/index.js b/dist/index.js index df1a5ec..921a4ac 100644 --- a/dist/index.js +++ b/dist/index.js @@ -14672,7 +14672,7 @@ function doQueryIssues(state, creator, ignoreLabels) { } }); } - core.info(`[doQueryIssues] issueNumbers is [${JSON.stringify(issueNumbers)}]`); + core.info(`[doQueryIssues] issueNumbers is ---> ${JSON.stringify(issueNumbers)}`); return issues; }); } @@ -14938,7 +14938,7 @@ function doMarkDuplicate(comment, labels, emoji) { core.info(`[doMarkDuplicate] Done!`); } else { - core.warning(`This comment body should start whith 'duplicate-command' or 'Duplicate of' and not include '?'`); + core.warning(`This comment body should start with 'duplicate-command' or 'Duplicate of' and not include '?'`); } }); } @@ -15269,8 +15269,7 @@ class IssueHelperEngine { this.issueNumber = +issueNumber; } else { - core.setFailed(`issue-number is missing!`); - return; + core.warning(`'issue-number' is missing or this action not needed yet!`); } this.emoji = core.getInput('emoji') || ''; this.labels = (0, actions_util_1.dealStringToArr)(core.getInput('labels') || ''); @@ -15435,6 +15434,7 @@ class IssueHelperEngine { } break; } + // -[ Advanced End ]-> default: { core.warning(`The ${action} is not allowed.`); break; diff --git a/src/helper/advanced.ts b/src/helper/advanced.ts index c6b0bec..5beed29 100644 --- a/src/helper/advanced.ts +++ b/src/helper/advanced.ts @@ -91,7 +91,7 @@ export async function doQueryIssues( }); } - core.info(`[doQueryIssues] issueNumbers is [${JSON.stringify(issueNumbers)}]`); + core.info(`[doQueryIssues] issueNumbers is ---> ${JSON.stringify(issueNumbers)}`); return issues; } @@ -349,7 +349,7 @@ export async function doMarkDuplicate( core.info(`[doMarkDuplicate] Done!`); } else { core.warning( - `This comment body should start whith 'duplicate-command' or 'Duplicate of' and not include '?'`, + `This comment body should start with 'duplicate-command' or 'Duplicate of' and not include '?'`, ); } } diff --git a/src/helper/helper.ts b/src/helper/helper.ts index 1951601..890304a 100644 --- a/src/helper/helper.ts +++ b/src/helper/helper.ts @@ -78,8 +78,7 @@ export class IssueHelperEngine implements IIssueHelperEngine { if (issueNumber) { this.issueNumber = +issueNumber; } else { - core.setFailed(`issue-number is missing!`); - return; + core.warning(`'issue-number' is missing or this action not needed yet!`); } this.emoji = core.getInput('emoji') || ''; @@ -242,6 +241,7 @@ export class IssueHelperEngine implements IIssueHelperEngine { } break; } + // -[ Advanced End ]-> default: { core.warning(`The ${action} is not allowed.`); break;