Last active
February 25, 2022 23:17
-
-
Save rgregg/56da4449c3ce57905d593daa0fcaaa48 to your computer and use it in GitHub Desktop.
Webhook notification body template for AppVeyor to Microsoft Teams
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
{ | |
{{#passed}} | |
"title": "Build {{projectName}} {{buildVersion}} completed", | |
"themeColor": "5FE35F", | |
{{/passed}} | |
{{#failed}} | |
"title": "Build {{projectName}} {{buildVersion}} failed", | |
"themeColor": "FC5C3C", | |
{{/failed}} | |
"text": "Commit [{{commitId}}](https://github.com/{{repositoryName}}/commit/{{commitId}}) by {{committerName}} on {{commitDate}}: {{commitMessage}}", | |
"potentialAction": [ | |
{ | |
"@context": "https://schema.org", | |
"@type": "ViewAction", | |
"name": "Build details", | |
"target": ["{{buildUrl}}"] | |
}, | |
{ | |
"@context": "https://schema.org", | |
"@type": "ViewAction", | |
"name": "Commit details", | |
"target": ["https://github.com/{{repositoryName}}/commit/{{commitId}}"] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment