https://github.com/prepare-to-cry/github2slack
Notify a slack channel when a label is added to a github pull request
https://github.com/prepare-to-cry/github2slack
github notifications pull-requests slack
Last synced: 7 months ago
JSON representation
Notify a slack channel when a label is added to a github pull request
- Host: GitHub
- URL: https://github.com/prepare-to-cry/github2slack
- Owner: prepare-to-cry
- License: mit
- Created: 2018-01-12T11:57:07.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-02T12:54:29.000Z (over 7 years ago)
- Last Synced: 2025-06-21T12:04:53.550Z (7 months ago)
- Topics: github, notifications, pull-requests, slack
- Language: JavaScript
- Size: 174 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github2slack [](https://www.npmjs.com/package/github2slack)
> Notify a slack channel when a label is added to a github pull request
## Install
```sh
git clone https://github.com/prepare-to-cry/github2slack
cd github2slack
npm link
```
### Rename the `.env-example` to `.env`
And replace the following variables accordingly
```
REPO_USERNAME=prepare-to-cry
REPO_NAME=github2slack
GITHUB_TOKEN=faketoken
SLACK_WEBHOOK=https://hooks.slack.com/services/BLABLABLA
```
## Usage
```
Usage
$ github2slack
Examples
$ github2slack "Ready for QA" "qa-channel" # Posts to #qa-channel when label is added
$ github2slack "DevReady" "codereviews" # Posts to #codereviews when label is added
```
## Created by
- [Cesar Ferreira](https://cesarferreira.com)
- [Thomas Bruggenwirth](https://github.com/tombruggenwirth)