Danger
Danger runs during Grape projects' CI process, and gives you a chance to automate common code review chores.
Table of Contents
- Setup
- Set DANGER_GITHUB_API_TOKEN in Travis-CI
- Add Danger
- Add Dangerfile
- Add Danger to Travis-CI
- Commit via a Pull Request
- License
Setup
Enable Danger for a project within the ruby-grape organization.
Add Danger
Add ruby-grape-danger
to Gemfile
.
gem 'ruby-grape-danger', require: false
Add Dangerfile
Commit a Dangerfile
, eg. Grape's Dangerfile.
danger.import_dangerfile(gem: 'ruby-grape-danger')
Commit via a Pull Request
To test things out, make a dummy entry in CHANGELOG.md
that doesn't match the standard format and make a pull request. Iterate until green.
License
MIT License. See LICENSE for details.