Created
October 23, 2025 12:12
-
-
Save gquittet/49773087bb55108ba40ea1e739886563 to your computer and use it in GitHub Desktop.
Teams GitLab webhook
This file contains hidden or 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
| { | |
| "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}}" } | |
| ] | |
| } | |
| ] | |
| } |
This file contains hidden or 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
| { | |
| "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