add flag to subject
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
fc3549d722
commit
0239b0cab2
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
|
@ -80,10 +80,10 @@ func sendNotification(result jobResult, notification notificationConfig) error {
|
|||
msg.Priority = 10
|
||||
|
||||
if result.isSuccess() {
|
||||
title = "✅ [scron] " + result.job.Name
|
||||
title = "✅ [scron][success] " + result.job.Name
|
||||
msg.Priority = -1
|
||||
} else {
|
||||
title = "❌ [scron] " + result.job.Name
|
||||
title = "❌ [scron][error] " + result.job.Name
|
||||
}
|
||||
|
||||
msg.Message = result.outputString
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue