This commit is contained in:
parent
d9828186fd
commit
3d63ed4790
4 changed files with 98 additions and 99 deletions
55
message.tpl
Normal file
55
message.tpl
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
"cardsV2": [
|
||||
{
|
||||
"cardId": "notify-{{ .ActionID }}",
|
||||
"card": {
|
||||
"header": {
|
||||
"title": "{{ .Title }}",
|
||||
"subtitle": "{{ .SubTitle }}",
|
||||
"imageUrl": "{{ .IconUrl }}",
|
||||
"imageType": "SQUARE"
|
||||
},
|
||||
"sections": [
|
||||
{
|
||||
"header": "{{ .Title }}",
|
||||
"collapsible": true,
|
||||
"uncollapsibleWidgetsCount": 2,
|
||||
"widgets": [
|
||||
{{ .Add }}
|
||||
{
|
||||
"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 }}"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue