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:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user