Skip to content
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

Question about GitHub integration #2339

Closed
zb471914758 opened this issue Feb 25, 2016 · 12 comments
Closed

Question about GitHub integration #2339

zb471914758 opened this issue Feb 25, 2016 · 12 comments

Comments

@zb471914758
Copy link

Your Rocket.Chat version: (make sure you are running the latest)
meteor web

@zb471914758 zb471914758 changed the title The below picture shows what github repository changes on Rocket.Chat,would you tell me this is done by hubot notifier Events or Rocket.Chat webhook?Thanks The below picture shows what github repository changes on Rocket.Chat,would you tell me this is done by hubot notifier events or Rocket.Chat webhook?Thanks Feb 25, 2016
@zb471914758 zb471914758 changed the title The below picture shows what github repository changes on Rocket.Chat,would you tell me this is done by hubot notifier events or Rocket.Chat webhook?Thanks The below picture shows what github repository changes on Rocket.Chat,would you tell me this is done by hubot notifier events or Rocket.Chat webhook?Thanks! Feb 25, 2016
@sampaiodiego
Copy link
Member

This is done by hubot, it was done that way because we got the hubot integration before we have webhooks.
Now you can configure the both.

@zb471914758
Copy link
Author

@sampaiodiego Does the hubot integration mean the code packages/rocketchat-hubot and the hubot.coffee script? Thanks!

@sampaiodiego
Copy link
Member

@zb471914758 no.. this hubot.coffe is an internal hubot and the one who has the github integration is the one from the repo https://github.com/RocketChat/Rocket.Chat.Hubot

maybe @Sing-Li can explain better why we have both.

@Sing-Li Sing-Li changed the title The below picture shows what github repository changes on Rocket.Chat,would you tell me this is done by hubot notifier events or Rocket.Chat webhook?Thanks! Question about GitHub integration Feb 26, 2016
@Sing-Li
Copy link
Member

Sing-Li commented Feb 26, 2016

Thanks, @sampaiodiego --- I'll try :)

So @zb471914758, there are two different ways you can have GitHub activities posted to a channel.

  1. The easiest is incoming webhooks. Menu : Admin->Integrations This is also one of the newest feature we have. It requires no additional server resources and is quite easy to configure.
  2. The second one is via our NPM hubot-in-a-module, named BaronBogo : https://www.npmjs.com/package/hubot-baronbogo You'll need to run this on a separate process or server for it to work. The image you posted above is from BaronBogo.

The internal bot (named Rocket.Cat) is designed for those who wants to experiment with hubot technology but do not want to, or do not have access to, additional server resources. It is relatively limited, and currently does not support GitHub integrations.

@zb471914758
Copy link
Author

@sampaiodiego,@Sing-Li When I install hubot-baronbogo,
export REPOSITORY_NAME="RocketChat/Rocket.Chat"
export HUBOT_GITHUB_EVENT_NOTIFIER_TYPES=issues
and then execute
bin/hubot
hubot> hubot our issues
but I get nothing, and get an error "ERROR { [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }"

The code is:

    robot.respond /our issues/i, (res) ->
        url = "https://api.github.com/repos/" + our_repo + "/issues?state=open"

        github.get url, (issues) ->
            res.send disp_issues(issues, false)

Do you know why? Thank you very much!

@engelgabriel
Copy link
Member

Depends on #2426

@engelgabriel engelgabriel added this to the 0.22.0 milestone Mar 4, 2016
@engelgabriel
Copy link
Member

We will remove the dependency on hubot on the next version

@engelgabriel
Copy link
Member

@engelgabriel engelgabriel modified the milestones: 0.22.0, 0.23.0, 0.24.0 Mar 16, 2016
@andreas-bulling
Copy link

@engelgabriel the example scripts are extremely helpful. Any chance these could be extended quickly with an example that allows git pushes to be shown with the corresponding commit message(s) and an URL to the commit?

@engelgabriel
Copy link
Member

We are working on that, and w way to share scripts via a online catalogue too.

@engelgabriel engelgabriel modified the milestones: 0.24.0, 0.25.0, 0.26.0 Mar 29, 2016
@engelgabriel engelgabriel removed this from the 0.26.0 milestone Apr 11, 2016
@supriya999
Copy link

Are there any example scripts to integrate incoming webhook in rocket chat from gogs webhook?
I tried this script but its not working with combination gogs->rocket.caht
https://rocket.chat/docs/administrator-guides/integrations/github

@geekgonecrazy
Copy link
Contributor

@supriya999 beauty of Rocket.Chat is you can actually just use the slack webhook option in gogs and give it the integration URL and it'll just work.

Looks like main question was answered. Closing

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

No branches or pull requests

8 participants