Skip to content

prepare-to-cry/github2slack

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

github2slack npm

Notify a slack channel when a label is added to a github pull request

Install

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 <GITHUB_LABEL> <DESTINATION_SLACK_CHANNEL>
   
 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

About

Notify a slack channel when a label is added to a github pull request

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published