Skip to content

Instantly share code, notes, and snippets.

@rgregg
Last active February 25, 2022 23:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rgregg/56da4449c3ce57905d593daa0fcaaa48 to your computer and use it in GitHub Desktop.
Save rgregg/56da4449c3ce57905d593daa0fcaaa48 to your computer and use it in GitHub Desktop.
Webhook notification body template for AppVeyor to Microsoft Teams
{
{{#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