notify/message.tpl
Marcel S. Henselin ab184a741a
All checks were successful
Sample Testing / my_job (push) Successful in 40s
chore: use image instead of build
2026-04-17 15:02:44 +02:00

54 lines
1.4 KiB
Smarty

{
"cardsV2": [
{
"cardId": "notify-{{ .CardID }}",
"card": {
"header": {
"title": "{{ .Title }}",
"subtitle": "{{ .SubTitle }}",
"imageUrl": "{{ .IconUrl }}",
"imageType": "SQUARE",
"imageAltText": "message avatar image"
},
"sections": [
{
"header": "{{ .Title }}",
"collapsible": false,
"uncollapsibleWidgetsCount": 2,
"widgets": [
{
"decoratedText": {
"startIcon": {
"knownIcon": "PERSON"
},
"text": "<b>{{ .Author }}</b>"
}
},
{
"textParagraph": {
"text": "{{ .EventBody }}",
"maxLines": 5
}
},
{
"buttonList": {
"buttons": [
{
"text": "View Source Event",
"type": "FILLED",
"onClick": {
"openLink": {
"url": "{{ .GitURL }}/{{ .Project }}/actions/runs/{{ .ActionID }}"
}
}
}
]
}
}
]
}
]
}
}
]
}