ci/github-script/commits: fix logging no-cherry-pick message

This has severity "important", which is not a `core` function. Falling
back to `core.info` for all unknown values now.
This commit is contained in:
Wolfgang Walther
2025-08-22 09:24:41 +02:00
parent 8ec348d644
commit 2257beb1d0

View File

@@ -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)
})