Code Review Bot
Dev Setup
- Clone this repo, cd into it, &
npm install
- Generate a github access token at https://github.com/settings/tokens
- Create a dev Slack token at https://api.slack.com/docs/oauth-test-tokens
- Copy config.json.example to config.json; put your Github and Slack tokens in it
- If you want to send messages to your dev environment from Slack, create or reuse a Slack slash-command, like
/test-cr
. Point the command at your dev server using ngrok or port forwarding. npm start
- In a Slack channel, you can now try
/test-cr <github-url>
Tests
npm test
Deploying
- Get the SB Digital Ocean key set up
npm install pm2 -g
pm2 deploy ecosystem.json production