mirror of
https://github.com/zhigang1992/release-drafter.git
synced 2026-06-12 17:18:55 +08:00
12 lines
275 B
JavaScript
12 lines
275 B
JavaScript
module.exports = ({ app, context, message, info }) => {
|
|
const repo = context.payload.repository
|
|
const prefix = repo ? `${repo.full_name}: ` : ''
|
|
const logString = `${prefix}${message}`
|
|
|
|
if (info) {
|
|
app.log(logString, info)
|
|
} else {
|
|
app.log(logString)
|
|
}
|
|
}
|