Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benoittgt/phubme
Get notified in slack when someone mention you in github
https://github.com/benoittgt/phubme
elixir github heroku notifications notify slack
Last synced: 4 months ago
JSON representation
Get notified in slack when someone mention you in github
- Host: GitHub
- URL: https://github.com/benoittgt/phubme
- Owner: benoittgt
- Created: 2016-08-02T18:20:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-18T08:40:42.000Z (almost 7 years ago)
- Last Synced: 2024-10-12T09:42:34.344Z (4 months ago)
- Topics: elixir, github, heroku, notifications, notify, slack
- Language: Elixir
- Homepage:
- Size: 187 KB
- Stars: 7
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Phubme
[![Build Status](https://travis-ci.org/benoittgt/PhubMe.svg)](https://travis-ci.org/benoittgt/PhubMe)
Notify a slack user when the user is mentionned in a github comment.
## Installation
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
Or get the project and :
```sh
$ mix deps.get
$ iex -S mix run --no-halt
```
You can specify the `PORT` using env variable. By default it's 8080.## Setup
### Slack
To use PhuMe you need to get first a bot token from Slack. [Create one](https://api.slack.com/bot-users) 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 `@`** :
```sh
export mynicknameongithub=mynicknameonslack
```In Heroku it looks like this :
![](heroku_envs.png)
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.