Skip to content

Commit 89b589a

Browse files
authored
fix: add template file (#19)
1 parent 9ebedd9 commit 89b589a

File tree

3 files changed

+145
-1
lines changed

3 files changed

+145
-1
lines changed

dist/main/ac.json

Lines changed: 72 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opsless/ms-teams-github-actions",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"private": true,
55
"description": "MS Teams Github Actions integration",
66
"main": "lib/main.js",

src/ac.json

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"type": "AdaptiveCard",
3+
"body": [
4+
{
5+
"type": "TextBlock",
6+
"size": "large",
7+
"weight": "bolder",
8+
"text": "Workflow '${$root.workflow.name}' #${$root.workflow.run_number} ${$root.workflow.conclusion}",
9+
"color": "${$root.workflow.conclusion_color}",
10+
"fontType": "Default",
11+
"separator": true
12+
},
13+
{
14+
"type": "TextBlock",
15+
"text": "on [${$root.repository.name}](${$root.repository.html_url})",
16+
"wrap": true,
17+
"spacing": "None"
18+
},
19+
{
20+
"type": "ColumnSet",
21+
"columns": [
22+
{
23+
"type": "Column",
24+
"items": [
25+
{
26+
"type": "Image",
27+
"style": "Person",
28+
"url": "${$root.author.avatar_url}",
29+
"size": "Medium"
30+
}
31+
],
32+
"width": "auto"
33+
},
34+
{
35+
"type": "Column",
36+
"items": [
37+
{
38+
"type": "TextBlock",
39+
"weight": "Bolder",
40+
"text": "[${$root.author.username}](${$root.author.html_url})",
41+
"wrap": true
42+
}
43+
],
44+
"width": "stretch"
45+
}
46+
],
47+
"spacing": "Medium"
48+
},
49+
{
50+
"type": "FactSet",
51+
"facts": [
52+
{
53+
"title": "Commit",
54+
"value": "[${$root.commit.message}](${$root.commit.html_url})"
55+
},
56+
{
57+
"title": "${$root.event.type}",
58+
"value": "[${$root.event.html_url}](${$root.event.html_url})"
59+
},
60+
{
61+
"title": "Workflow run details",
62+
"value": "[${$root.workflow.run_html_url}](${$root.workflow.run_html_url})"
63+
}
64+
],
65+
"height": "stretch",
66+
"separator": true,
67+
"spacing": "Medium"
68+
}
69+
],
70+
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
71+
"version": "1.2"
72+
}

0 commit comments

Comments
 (0)