Danger runs during the CI process, and gives you a chance to automate common code review chores.
Enable Danger for your project.
In Travis-CI, choose Settings and add DANGER_GITHUB_API_TOKEN
in Environment Variables. Set the value to the API key for a bot user. See Getting Set Up for more information.
Add ${GEM_NAME}
to Gemfile
.
gem '${GEM_NAME}', '~> 0.1.0', require: false
Commit a Dangerfile
.
danger.import_dangerfile(gem: '${GEM_NAME}')
Add Danger to .travis.yml
.
matrix:
include:
- rvm: 2.3.1
script:
- bundle exec danger
To test things out, make a pull request.
MIT License. See LICENSE for details.