notify/message.tpl
Marcel S. Henselin 59ff5a81b4
All checks were successful
Sample Testing / my_job (push) Successful in 1m34s
chore: test old
2026-04-16 12:03:53 +02:00

53 lines
1.3 KiB
Smarty

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