-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert message to adaptive cards with colored headers
- Loading branch information
Showing
4 changed files
with
79 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
FROM ubuntu:22.04 | ||
|
||
COPY check /opt/resource/check | ||
COPY in /opt/resource/in | ||
COPY out /opt/resource/out | ||
|
||
RUN chmod +x /opt/resource/out /opt/resource/in /opt/resource/check && \ | ||
apt-get update && \ | ||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y curl jq | ||
|
||
COPY check /opt/resource/check | ||
COPY in /opt/resource/in | ||
COPY out /opt/resource/out | ||
COPY card.jq /opt/resource/card.jq | ||
|
||
RUN chmod +x /opt/resource/out /opt/resource/in /opt/resource/check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"type": "message", | ||
"attachments": [ | ||
{ | ||
"contentType": "application/vnd.microsoft.card.adaptive", | ||
"contentUrl": null, | ||
"content": { | ||
"type": "AdaptiveCard", | ||
"body": [ | ||
{ | ||
"type": "Container", | ||
"items": [ | ||
{ | ||
"type": "TextBlock", | ||
"text": $title, | ||
"wrap": true, | ||
"size": "Large", | ||
"weight": "Bolder" | ||
} | ||
], | ||
"style": $style | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": $text, | ||
"wrap": true | ||
} | ||
], | ||
"actions": [ | ||
{ | ||
"type": "Action.OpenUrl", | ||
"title": $actionName, | ||
"url": $actionTarget | ||
} | ||
], | ||
"msteams": { | ||
"width": "Full" | ||
}, | ||
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json", | ||
"version": "1.5" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters