-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Create GitLab integration webhook payload parser script #2367
Comments
In case it helps, I am getting this in the rocket.chat log but the message that hubot prints in the channel is empty
|
I have upgraded to latest release 0.20.0 and I still have the same problem. is anyone using gitlab webhooks with rocket chat? |
I have a similar issue where the webhook post |
Depends on #2426 |
thanks for looking into this @engelgabriel |
Please see initial documentation at https://github.com/RocketChat/Rocket.Chat/wiki/WebHook-Scripting---GitHub |
is there any script for gitlab? |
Working on it, want to help? |
I can do beta testing in my gitlab instance if required. I have no experience with JS |
I got the same issue. Rocket chat showed empty message when gitlab pushed issue/comment through web hook. i tried to write srcipts like https://github.com/RocketChat/Rocket.Chat/wiki/WebHook-Scripting---GitHub, but it doesnt work. Even the script is simple as below, it also doesnt work.
i got the error below when i write script for incoming webhook,
|
could help, too |
One way improvised by a parser, would be to use any RSS reader application (example, the newsbeuter), pick up one or more RSS each gitlab project (preferably master branch), make a DIFF between RSS reader and the downloaded file (to check for update , commits etc...), and generate an output of with Curl for the rocket. chat. It's a bad idea? |
@rodrigok can you help here? |
@sandish2222 are you editing and saving the script via the admin page? |
@rodrigok i solved this issue. Just treat rocket chat as slack for gitlab instead of using webhook script. it works well. |
@sandish2222 can you explain how you did it? |
@lobocode figured it out:
|
@toupeira your solution will work on a single project not for every project in a group. If you go to group page you will see that there is only Webhooks option available, no Services option. |
@teamsoo thanks for pointing that out, I didn't realize Gitlab supports webhooks on groups :) |
Hi,
I am running rocket chat 0.19.0 using the official docker image.
I have configured an incoming webhook integration in rocket chat to get notifications from my gitlab instance. The weird thing is that when I configure slack service in gitlab it works fine but when I configure a webhook in gitlab using the same url it doesn't work. The bot prints an empty message in the channel without the push details.
I would like to use webhooks in gitlab instead of the slack service because I would like to enable rocket chat notifications for all my gitlab projects and using webhooks I could try this https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/web_hooks.md but the slack service has to be configured for each repository.
do you have any clue what could be the problem? I am using gitlab 8.4.4
The text was updated successfully, but these errors were encountered: