Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Post to variable slack channels #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

newellista
Copy link

If you define the SiteSetting.slack_channel to include {category},
the plugin will substitute the Post category name.

For example:

If you have defined:

SiteSetting.slack_channel = "#discourse-{category}"

and you create a new Post in with a Category of "Servers", the
notification will get posted to the #discourse-servers channel.

If you define the `SiteSetting.slack_channel` to include `{category}`,
the plugin will substitute the `Post` category name.

For example:

If you have defined:

`SiteSetting.slack_channel = "#discourse-{category}"`

and you create a new Post in with a Category of "Servers", the
notification will get posted to the `#discourse-servers` channel.
@bernd
Copy link
Owner

bernd commented Feb 25, 2016

@newellista Would #7 fit for your use case as well?

@newellista
Copy link
Author

@bernd #7 looks like it would cover our use case. I'm fine with either solution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants