Danger runs during Slack Ruby projects' CI process, and gives you a chance to automate common code review chores.
Enable Danger for a project within the slack-ruby organization.
In Travis-CI, choose Settings and add DANGER_GITHUB_API_TOKEN in Environment Variables. Set the value to the API key for the dangerpr-bot user, look in a recent build for this project for its value.
Add slack-ruby-danger to Gemfile.
gem 'slack-ruby-danger', '~> 0.2.0'Commit a Dangerfile, eg. slack-ruby-client's Dangerfile.
danger.import_dangerfile(gem: 'slack-ruby-danger')Add Danger to .travis.yml, eg. slack-ruby-client's Travis.yml.
matrix:
include:
- rvm: 2.3.1
script:
- bundle exec dangerTo test things out make a pull request without CHANGELOG.md changes. Iterate until green.
MIT License. See LICENSE for details.