mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-12-03 14:51:05 +01:00
fix(alerts): version instaed of build id
This commit is contained in:
parent
47f9c851e6
commit
c8a00ba1e4
@ -106,7 +106,10 @@ func (t *TaskRunner) sendTelegramAlert() {
|
||||
if t.Task.Version != nil {
|
||||
version = *t.Task.Version
|
||||
} else if t.Task.BuildTaskID != nil {
|
||||
version = "build " + strconv.Itoa(*t.Task.BuildTaskID)
|
||||
buildVer := t.Task.GetIncomingVersion(t.pool.store)
|
||||
if buildVer != nil {
|
||||
version = *buildVer
|
||||
}
|
||||
} else {
|
||||
version = ""
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user