Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions integrations/mattermost/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2026 Catamorphic Co.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
9 changes: 9 additions & 0 deletions integrations/mattermost/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Mattermost

User documentation for this integration is available on the LaunchDarkly documentation site: [Mattermost](https://launchdarkly.com/docs/integrations/mattermost)

API documentation for this integration is available on Mattermost's documentation site: [Incoming webhooks for Mattermost](https://docs.mattermost.com/developer/webhooks-incoming.html)

## Getting started with the Mattermost integration

Run `npm run curl mattermost` in the root repository directory to generate a `curl` command to send data to Mattermost.
1 change: 1 addition & 0 deletions integrations/mattermost/assets/images/horizontal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions integrations/mattermost/assets/images/square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions integrations/mattermost/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"name": "Mattermost incoming webhooks",
"version": "1.0.0",
"overview": "Receive flag change notifications in your Mattermost channels.",
"description": "Receive LaunchDarkly notifications in your Mattermost channels. Subscribe to changes in flags, projects, environments, and other resources via Mattermost's incoming webhook integration.",
"author": "LaunchDarkly",
"supportEmail": "support@launchdarkly.com",
"links": {
"site": "https://mattermost.com",
"launchdarklyDocs": "https://launchdarkly.com/docs/integrations/mattermost",
"privacyPolicy": "https://mattermost.com/privacy-policy/"
},
"categories": ["messaging"],
"icons": {
"square": "assets/images/square.svg",
"horizontal": "assets/images/horizontal.svg"
},
"formVariables": [
{
"key": "url",
"name": "Incoming webhook URL",
"type": "uri",
"description": "Enter your Mattermost [incoming webhook URL](https://docs.mattermost.com/developer/webhooks-incoming.html).",
"isSecret": false
}
],
"capabilities": {
"auditLogEventsHook": {
"endpoint": {
"url": "{{{url}}}",
"method": "POST",
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
]
},
"templates": {
"project": "templates/project.json.hbs",
"environment": "templates/environment.json.hbs",
"default": "templates/default.json.hbs",
"validation": "templates/default.json.hbs"
},
"defaultPolicy": [
{
"effect": "allow",
"resources": ["proj/*:env/production:flag/*"],
"actions": ["*"]
}
]
}
}
}
19 changes: 19 additions & 0 deletions integrations/mattermost/templates/default.json.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"username": "LaunchDarkly",
"attachments": [
{
"fallback": "{{{title.plainText}}}",
"color": "#405BFF",
"title": "{{{name}}}",
"title_link": "{{{_links.site.href}}}",
"text": "{{{title.markdown}}}{{#if details.markdown}}\n\n{{{details.markdown}}}{{/if}}{{#if comment}}\n\n**Comment:** {{{comment}}}{{/if}}",
"fields": [
{{#if project.name}}{ "title": "Project", "value": "{{{project.name}}}", "short": true },
{{/if}}{{#if project.environment.name}}{ "title": "Environment", "value": "{{{project.environment.name}}}", "short": true },
{{/if}}{ "title": "Action", "value": "{{{verbKind}}}", "short": true }
],
"footer": "LaunchDarkly",
"ts": {{timestamp.seconds}}
}
]
}
17 changes: 17 additions & 0 deletions integrations/mattermost/templates/environment.json.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"username": "LaunchDarkly",
"attachments": [
{
"fallback": "{{{title.plainText}}}",
"color": "#405BFF",
"title": "{{{name}}}",
"title_link": "{{{_links.site.href}}}",
"text": "{{{title.markdown}}}{{#if details.markdown}}\n\n{{{details.markdown}}}{{/if}}{{#if comment}}\n\n**Comment:** {{{comment}}}{{/if}}",
"fields": [
{ "title": "Project", "value": "{{{project.name}}}", "short": true }
],
"footer": "LaunchDarkly",
"ts": {{timestamp.seconds}}
}
]
}
14 changes: 14 additions & 0 deletions integrations/mattermost/templates/project.json.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"username": "LaunchDarkly",
"attachments": [
{
"fallback": "{{{title.plainText}}}",
"color": "#405BFF",
"title": "{{{name}}}",
"title_link": "{{{_links.site.href}}}",
"text": "{{{title.markdown}}}{{#if details.markdown}}\n\n{{{details.markdown}}}{{/if}}{{#if comment}}\n\n**Comment:** {{{comment}}}{{/if}}",
"footer": "LaunchDarkly",
"ts": {{timestamp.seconds}}
}
]
}
Loading