mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 15:29:28 +01:00
Merge pull request #1934 from prakx87/fix-slack-alert
Fix: Author & Version return values in alerts and Slack template
This commit is contained in:
commit
396ea4dded
@ -382,7 +382,7 @@ func (t *TaskRunner) alertInfos() (string, string) {
|
||||
author = user.Name
|
||||
}
|
||||
|
||||
return version, author
|
||||
return author, version
|
||||
}
|
||||
|
||||
func (t *TaskRunner) alertColor(kind string) string {
|
||||
|
@ -13,6 +13,13 @@
|
||||
"title": "Author",
|
||||
"value": "{{ .Author }}",
|
||||
"short": true
|
||||
{{ if .Task.Version }}
|
||||
},
|
||||
{
|
||||
"title": "Version",
|
||||
"value": "{{ .Task.Version }}",
|
||||
"short": true
|
||||
{{ end }}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user