CODE REVIEWS
- It currently contains only a
slash commandwhich is/cr - Install the app in your slack workspace and type
/cr --helpto see the features
Contributing
- Set up the project with the "Development" section
- Ask to be a collaborator on the Slack application
- Create a
/slash command. Don't forget to tick: "Escape channels, users, and links sent to your app"cr - Start
ngrok http 3000in a terminal - Copy the hostname into your
application.yml"TUNNEL_HOST" - Ask the values to customize the rest of the
application.yml
Development
# Install and launch an http tunnel to your computer
brew cask install ngrok
ngrok http 3000
# Set up the rails app in another terminal
bundle install
cp config/application.example.yml config/application.yml
# customize the value of the slack signing secret (See section "Slack app")
bin/rails db:setup
bin/rails rails server
brew cask install ngrok
ngrok http 3000
# Set up the rails app in another terminal
bundle install
cp config/application.example.yml config/application.yml
# customize the value of the slack signing secret (See section "Slack app")
bin/rails db:setup
bin/rails rails server
Edit config/application.yml and update TUNNEL_HOST ' in the default block.
"Create New Command" on Slash Commands with:
- Command:
/, i.e. "/davecr"cr - Request URL:
https://.ngrok.io/slack-api/slash-command - Short Description: "Your name"
- Check "Escape channels, users, and links sent to your app"
Deployment
Github Actions will automatically build and deploy the application once you create a new tag.
The secrets are here https://github.com/boost/slack-code-reviews/settings/secrets/new.
The keys are kept in 1password.
drone access keys and Slack Code Review Public Private Deploy Key