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
Settings
thenWebhooks
-
Click
Add webhook
-
Add http://crbot.vigetx.com/github_event to the
Payload URL
field -
Set
Content type
toapplication/json
-
Select
Let me select individual events
radio button -
Check the
Pull requests
andPull request reviews
boxes -
Click
Add webhook
button -
(Temporary) Make sure joeyjoejoejr has read access to the repo (for file type detection)
-
Install Docker for mac
-
Copy and complete
.env.example
to.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 setup
to 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