Merge pull request #1771 from thibaultserti/develop

fix: slack color for failure
This commit is contained in:
Denis Gukov 2024-03-01 14:27:07 +05:00 committed by GitHub
commit 60f3c72c22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -202,7 +202,7 @@ func (t *TaskRunner) sendSlackAlert() {
if t.Task.Status == lib.TaskSuccessStatus { if t.Task.Status == lib.TaskSuccessStatus {
color = "good" color = "good"
} else if t.Task.Status == lib.TaskFailStatus { } else if t.Task.Status == lib.TaskFailStatus {
color = "bad" color = "danger"
} else if t.Task.Status == lib.TaskRunningStatus { } else if t.Task.Status == lib.TaskRunningStatus {
color = "#333CFF" color = "#333CFF"
} else if t.Task.Status == lib.TaskWaitingStatus { } else if t.Task.Status == lib.TaskWaitingStatus {