-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mattermost integration #2834
Comments
Since both Mattermost and Rocket.Chat accept Slack's format of webhooks, I would like the option to turn the Slack webhook option into one where we can just input the url where we want the webhook to be posted to. This way we can ideally use it for both Mattermost and Rocket.Chat without much work. |
This would be great, looks like its just pulling the team name and id out of the url. So if we could just accept the URL as is? @geromueller just a note. Only the binary they(mattermost) distributes is MIT. The source is AGPLv3 😦 got me at first too. |
It would be awesome to include Rocket.Chat integration too, should we open another issue for the feature request? |
@engelgabriel The way I suggested in my comment above would eliminate the need to have chat specific plugins and instead have a "slack payload format", which both Rocket.Chat and Mattermost are able to use those. |
Yes, understood, but if it is not clearly stated that users can use Rocket.Chat, it may not be used. They can use the same code, but it would be nice if the name Rocket.Chat appears on the list. |
Well, it already works. Just select Slack and set the payload URL to yout Mattermost webhook URL. I tested this today and it worked fine. Customizing icon URL did not work, but I'm unsure if this is a Gogs problem. More investigation is needed. |
Due to @saboya's comment, I decided to give it another shot and it worked nicely with Rocket.Chat! The channel, username, icon url, and color all worked like one would expect them to on the push event (I haven't tested the Create event). So, maybe just a wording change is all that would be helpful for others. |
So.... what is the situation right now? |
@unknwon Mattermost uses the same API as Slack for incoming webhooks, so it already works. |
OK, closing now. |
Actually it does NOT work, thats what i wrote in my initial post. MM 2.1 requires the Channel field to be empty, but gogs requires this field. You receive the message "Channel not found!" |
@geromueller I currently have MM 2.1 running, and it works just fine. Where in the documentation it says that channel has to be empty? |
@unknwon: Is it ok if we submit a PR with the changes on wording to explain that you can use the Slack integration for Rocket.Chat and Mattermost? |
@engelgabriel Yes. |
@geekgonecrazy or @geekgonecrazy can you do this? |
Since it works for @saboya i played around a bit. It indeed works but:
The ticket can stay closed in terms of implementation, but should be opened here or somewher else as text/docs is concerened. Cheers! |
The "empty channel" instruction is specific to the GitLab integration. In regular use, the channel has to be the same as displayed in the channel URL. For example:
CHANNEL_URL would be the correct string to use. |
http://www.mattermost.org/ is a perfect match to gogs, as it is also in Go and uses same databases
and is MIT licencend.Mattermost should be Slack compatible, but currently it does not work.
The response is 500 "Channel not found.".
The text was updated successfully, but these errors were encountered: