style: update info

This commit is contained in:
元凛
2022-02-14 09:52:39 +08:00
parent 083acea03f
commit 1eb674f153
3 changed files with 8 additions and 8 deletions

View File

@@ -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 '?'`,
);
}
}

View File

@@ -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;