https://github.com/ruby-grape/danger
Automate common code review chores with http://danger.systems.
https://github.com/ruby-grape/danger
Last synced: 9 months ago
JSON representation
Automate common code review chores with http://danger.systems.
- Host: GitHub
- URL: https://github.com/ruby-grape/danger
- Owner: ruby-grape
- License: mit
- Created: 2016-07-30T13:03:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-02-02T18:15:03.000Z (almost 2 years ago)
- Last Synced: 2025-04-17T15:13:31.708Z (9 months ago)
- Language: Ruby
- Size: 25.4 KB
- Stars: 13
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
## Danger
[Danger](http://danger.systems) runs during Grape projects' CI process, and gives you a chance to automate common code review chores.
[](https://travis-ci.org/ruby-grape/danger)
## Table of Contents
- [Setup](#setup)
- [Set DANGER_GITHUB_API_TOKEN in Travis-CI](#set-danger_github_api_token-in-travis-ci)
- [Add Danger](#add-danger)
- [Add Dangerfile](#add-dangerfile)
- [Add Danger to Travis-CI](#add-danger-to-travis-ci)
- [Commit via a Pull Request](#commit-via-a-pull-request)
- [License](#license)
## Setup
Enable Danger for a project within the [ruby-grape organization](https://github.com/ruby-grape).
### Add Danger
Add `ruby-grape-danger` to `Gemfile`.
```ruby
gem 'ruby-grape-danger', require: false
```
### Add Dangerfile
Commit a `Dangerfile`, eg. [Grape's Dangerfile](https://github.com/ruby-grape/grape/blob/master/Dangerfile).
```ruby
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](LICENSE) for details.