mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-27 02:52:14 +01:00
fix(be): pull pointer when getting build version
Some checks failed
Dev / build-local (push) Has been cancelled
Dev / migrate-boltdb (push) Has been cancelled
Dev / migrate-mysql (push) Has been cancelled
Dev / migrate-mariadb (push) Has been cancelled
Dev / migrate-postgres (push) Has been cancelled
Dev / integrate-boltdb (push) Has been cancelled
Dev / integrate-mysql (push) Has been cancelled
Dev / integrate-mariadb (push) Has been cancelled
Dev / integrate-postgres (push) Has been cancelled
Dev / deploy-server (push) Has been cancelled
Dev / deploy-runner (push) Has been cancelled
Some checks failed
Dev / build-local (push) Has been cancelled
Dev / migrate-boltdb (push) Has been cancelled
Dev / migrate-mysql (push) Has been cancelled
Dev / migrate-mariadb (push) Has been cancelled
Dev / migrate-postgres (push) Has been cancelled
Dev / integrate-boltdb (push) Has been cancelled
Dev / integrate-mysql (push) Has been cancelled
Dev / integrate-mariadb (push) Has been cancelled
Dev / integrate-postgres (push) Has been cancelled
Dev / deploy-server (push) Has been cancelled
Dev / deploy-runner (push) Has been cancelled
This commit is contained in:
parent
8932ea2e13
commit
cd0755f5a9
@ -487,7 +487,12 @@ func (t *TaskRunner) alertInfos() (string, string) {
|
||||
if t.Task.Version != nil {
|
||||
version = *t.Task.Version
|
||||
} else if t.Template.Type != db.TemplateTask {
|
||||
version = "build " + *t.Task.GetIncomingVersion(t.pool.store)
|
||||
v := t.Task.GetIncomingVersion(t.pool.store)
|
||||
if v != nil {
|
||||
version = "build " + *v
|
||||
} else {
|
||||
version = ""
|
||||
}
|
||||
} else {
|
||||
version = ""
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user