Skip to content

Instantly share code, notes, and snippets.

@gquittet
Created October 23, 2025 12:12
Show Gist options
  • Select an option

  • Save gquittet/49773087bb55108ba40ea1e739886563 to your computer and use it in GitHub Desktop.

Select an option

Save gquittet/49773087bb55108ba40ea1e739886563 to your computer and use it in GitHub Desktop.
Teams GitLab webhook
{
"summary": "{{environment}} deployment {{status}} on {{project.name}}",
"themeColor": "412888",
"title": "The {{environment}} deployment is {{status}} on {{project.name}}",
"sections": [
{
"activityTitle": "{{user.name}}",
"activitySubtitle": "{{deployment.finished_at}}",
"activityImage": "{{user.avatar_url}}",
"text": "The {{environment}} deployment is {{status}}."
}
],
"potentialAction": [
{
"@type": "OpenUri",
"name": "View Deployment",
"targets": [
{ "os": "default", "uri": "{{deployable_url}}" }
]
},
{
"@type": "OpenUri",
"name": "View Commit",
"targets": [
{ "os": "default", "uri": "{{commit_url}}" }
]
}
]
}
{
"summary": "Pipeline #{{object_attributes.iid}} {{object_attributes.status}} on {{project.name}}",
"themeColor": "412888",
"title": "The pipeline #{{object_attributes.iid}} is {{object_attributes.status}} on {{project.name}}",
"sections": [
{
"activityTitle": "{{user.name}}",
"activitySubtitle": "{{object_attributes.finished_at}}",
"activityImage": "{{user.avatar_url}}",
"facts": [
{
"name": "Project:",
"value": "{{project.name}}"
},
{
"name": "Branch:",
"value": "{{object_attributes.ref}}"
},
{
"name": "Status",
"value": "{{object_attributes.status}}"
},
{
"name": "Commit:",
"value": "{{commit.id}} - {{commit.message}}"
}
],
"text": "The pipeline #{{object_attributes.iid}} is {{object_attributes.status}} after {{object_attributes.duration}}s."
}
],
"potentialAction": [
{
"@type": "OpenUri",
"name": "View Pipeline",
"targets": [
{ "os": "default", "uri": "{{object_attributes.url}}" }
]
},
{
"@type": "OpenUri",
"name": "View Commit",
"targets": [
{ "os": "default", "uri": "{{commit.url}}" }
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment