I have been working on a Gitter integration for Discourse as an alternative service to the Slack plugin and I’d like to share the current state of it.
It’s necessary to create a custom integration in each room in which we want Discourse notifications. Once created, go to
/admin/plugins/gitter to register a new integration with the room name (e.g. gitterhq/meta) and the integration webhook url.
As you can see below, the admin interface is pretty similar to the Slack plugin’s, allowing to create filter rules specifying a category and some tags(optional). The main difference is that the filter rules are grouped by room.
Then, when a new post is created it will be notified in the corresponding Gitter rooms’ activity feed. The notifications follow a simple structure (
topic title -
category) due to the size of the activity feed. In addition, the whole notification text will be a link to the post in Discourse.
Here is the repo.
- Create a PR to the Gitter services library. This will allow us to have an official Discourse integration in Gitter (and stop using a “custom” one) and to perform some customization to the notifications, like setting an icon.
- Slash commands to manage filter rules from a Gitter room.
In addition, I consider important to mention that the idea is that, in the near future, this plugin makes use of the common event system @David_Taylor is working on.
Finally, I’m more than happy to receive feedback