Skip to content

Commit

Permalink
Merge pull request #13 from zealot128/change-channel
Browse files Browse the repository at this point in the history
Feature: Make Channel url configurable
  • Loading branch information
PXke authored Jan 10, 2023
2 parents d5d3050 + 44d563a commit ab3da9e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sentry_mattermost/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ def create(cls, plugin, event, template, rules):
"icon_url": "https://myovchev.github.io/sentry-slack/images/logo32.png", # noqa
"text": text
}
if plugin.get_option('channel', project):
payload["channel"] = plugin.get_option('channel', project)
return payload


Expand Down Expand Up @@ -147,6 +149,13 @@ def get_config(self, project, **kwargs):
"required": False,
"help": "Include tags with notifications."
},
{
"name": "channel",
"label": "Channel Name",
"type": "string",
"required": False,
"help": "Mattermost channel name, leave empty for default channel defined by webhook",
},
{
"name": "debug",
"label": "Debug mode",
Expand Down

0 comments on commit ab3da9e

Please sign in to comment.