This is the old code_review_bot. The new bot lives at https://github.com/vigetlabs/code_review_bot.
A bot that posts your PRs for code review in slack and automatically updates the message with the pr status (reviewed, approved, closed, or merged).
-
On your github repo page click
SettingsthenWebhooks -
Click
Add webhook -
Add http://crbot.vigetx.com/github_event to the
Payload URLfield -
Set
Content typetoapplication/json -
Select
Let me select individual eventsradio button -
Check the
Pull requestsandPull request reviewsboxes -
Click
Add webhookbutton -
(Temporary) Make sure joeyjoejoejr has read access to the repo (for file type detection)
-
Install Docker for mac
-
Copy and complete
.env.exampleto.env(Credentials are in 1password under Code Review Bot Credentials) -
Run
docker-compose build(takes about 5 minutes) -
Run
docker-compose run web diesel database setupto create and migrate your database -
Run
docker-compose up -
You will probably want to use ngrok and set up a slack slash command to test with (more on that later, ask Joe if you need help with this)
-
For migrations
docker-compose run web diesel migration run
- Proper keys in
.env - SSH access to crbot.vigetx.com
- The server set up as a docker-machine env
docker-machine create --driver generic --generic-ip-address <ipofdockerhost> --generic-ssh-user root
- Run
eval $(docker-machine env crbot-prod)to setup your environment - Run
$ docker-compose -f docker-compose.yml -f docker-compose.prod.yml build web
$ docker-compose -f docker-compose.yml -f docker-compose.prod.yml up --no-deps -d web
- For migrations
docker-compose -f docker-compose.yml -f docker-compose.prod.yml run web diesel migration run