Automate common code review chores in CI
open sourceMITfree
Danger runs during your CI process and automates common code review chores: you write rules in a Dangerfile, and Danger leaves messages, warnings and failures on the pull request when a change breaks them (a missing changelog entry, a PR that's too big, a lockfile changed without its manifest). The message updates as the PR is fixed, so reviewers can spend their time on harder problems. Danger JS writes rules in JavaScript or TypeScript and installs from npm; the original Danger is a Ruby gem, and there's a Swift version too. It works with GitHub, GitLab and Bitbucket and with most CI services.
Problems it solves
- automatically comment on pull requests that break our team's conventions
- fail CI when a PR doesn't update the changelog
- warn when a pull request is too large
- enforce code review rules in CI written in TypeScript
- automate repetitive code review checks on GitHub and GitLab
Features
- rules in a Dangerfile (JavaScript or TypeScript, Ruby or Swift)
- messages, warnings and failures posted on the PR
- GitHub, GitLab and Bitbucket
- runs on most CI services
- plugins
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Takes plugins | plan not known |
Alternatives
The same job
These do what Danger does.
- reviewdog Automated code review tool integrated with any code analysis tools regardless of programming language
- CodeRabbit Trust everything you ship with CodeRabbit
- Greptile The AI Code Reviewer
- PR-Agent An open-source AI agent that describes, reviews and improves pull requests.
- Cursor Bugbot AI code review that catches real bugs
