diff --git a/ci/github-script/commits.js b/ci/github-script/commits.js index 2e44de487b55..1391779e79ff 100644 --- a/ci/github-script/commits.js +++ b/ci/github-script/commits.js @@ -169,7 +169,16 @@ module.exports = async ({ github, context, core, dry }) => { core.startGroup(`Commit ${sha}`) core.info(`Author: ${commit.author.name} ${commit.author.email}`) core.info(`Date: ${new Date(commit.author.date)}`) - core[severity](message) + switch (severity) { + case 'error': + core.error(message) + break + case 'warning': + core.warning(message) + break + default: + core.info(message) + } core.endGroup() if (colored_diff) core.info(colored_diff) })