Danger runs in continuous integration to automate routine code review checks on pull and merge requests. Teams encode review norms so humans focus on harder problems.
Overview
Danger executes during CI and inspects metadata about a change, then publishes structured feedback on the review thread. It acts as an extra gate between authors and reviewers by linting repetitive checklist items that would otherwise be left as manual comments.
Teams can enforce changelog updates, require tracker links in descriptions, check labels, flag common anti-patterns, highlight interesting build artifacts, or give certain paths extra scrutiny. Rules are expressed in Ruby using a documented DSL, and shared plugins distribute common policies across repositories.
The tool integrates with hosted Git workflows on platforms such as GitHub, GitLab, and Bitbucket, and is often paired with Travis, Circle, and similar CI runners mentioned in project materials. Documentation for end users lives separately from the core Ruby codebase.
By codifying etiquette, Danger is meant to keep review culture consistent while still leaving substantive design decisions to people.
Key features
- CI-time review automation
- Custom Ruby rule DSL
- Plugin ecosystem
- PR and MR metadata access
- Team norm enforcement
- Changelog and link checks
- Label and pattern linting
- Build artifact commentary
Use cases
- Pull request checklist automation
- Enforcing changelog updates
- Requiring ticket links in PRs
- Highlighting risky file changes
- Standardizing review comments