Phubme

Build Status

Notify slack user when you are mentionned in a github comment

Installation

It's available in Hex. The package can be installed with:

  1. Add phubme to your list of dependencies in mix.exs:

    def deps do

     [{:phubme, "~> 0.5.4"}]

    end

  2. Ensure phubme is started before your application:

    def application do

     [applications: [:phubme]]

    end

Setup

Slack

To use PhuMe you need to get first a bot token from Slack. Create one and get the token. Set this token to the env variables PHUB_ME_SLACK_API_TOKEN.

Nicknames

As slack token. Nicknames need to be set as env variables. Export variables without @ :

export mynicknameongithub=mynicknameonslack

In Heroku it looks like this :

Github nickname on the left, slack nickname on the right.

Github webhook

Then in github in webhooks add configuration for your Phubme. https://myserver.io/phubme, application/json only "Issue comment".

Then try it.

Feel free to open issue and PR.