Merge pull request #1934 from prakx87/fix-slack-alert

Fix: Author & Version return values in alerts and Slack template
This commit is contained in:
Denis Gukov 2024-04-14 14:28:09 +05:00 committed by GitHub
commit 396ea4dded
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -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 {

View File

@ -13,6 +13,13 @@
"title": "Author",
"value": "{{ .Author }}",
"short": true
{{ if .Task.Version }}
},
{
"title": "Version",
"value": "{{ .Task.Version }}",
"short": true
{{ end }}
}
]
}