Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

julbrs/chat-bitbucket

Repository files navigation

chat-bitbucket

The Hangouts Chat adapter for Hubot is not able to send asynchronous HTTP call back to Hangouts Chat. So hard to create a bot around BitBucket with that ;) Replaced by https://github.com/bobman38/bitbucket-chat-bot


This bot is able to give you info about BitBucket PR on a Google Hangouts Chat room.

chat-bitbucket is a chat bot built on the Hubot framework. It was initially generated by generator-hubot, and configured to be deployed on Heroku-like to get you up and running as quick as possible.

This README is intended to help get you started. Definitely update and improve to talk about your own instance, how to use and deploy, what functionality is available, etc!

Running chat-bitbucket Locally

You can test your hubot by running the following, however some plugins will not behave as expected unless the environment variables they rely upon have been set.

You can start myhubot locally by running:

% bin/hubot

You'll see some start up output and a prompt:

[Sat Feb 28 2015 12:38:27 GMT+0000 (GMT)] INFO Using default redis on localhost:6379
myhubot>

Then you can interact with myhubot by typing myhubot help.

myhubot> myhubot help
myhubot animate me <query> - The same thing as `image me`, except adds [snip]
myhubot help - Displays all of the help commands that myhubot knows about.
...

To run with the adapter Hangouts Chat:

% npm start

Deploying to Dokku

Create the app on dokku and push it

git remote add dokku dokku@dokkuhost:appname
git push dokku master

Add letencrypt plugin to server https

On dokku host:

dokku plugin:install https://github.com/dokku/dokku-letsencrypt.git
dokku config:set --no-restart appname DOKKU_LETSENCRYPT_EMAIL=myemail
dokku letsencrypt appname

Follow google-hangouts-chat publish procedure here

You will have to use Bot URL = https://appname.dokkuhost

Activate webhook in BitBucket

  • Go yo project settings in bitbucket
  • Webhooks
  • Add
  • Trigger on all PR actions
  • URL : https://appname.dokkuhost/hubot/bitbucket-pr?room={room_id}

Thanks

About

Give you info about Bitbucket PR on Google Hangouts Chat

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published