Danger title image

The Dangerfilea project from orta therox, Juanito Fatas and and others.

A Dangerfile is a Ruby DSL. Before the ruby code inside your Dangerfile is executed, she grabs useful bits of data about: the CI environment, the git diff, and the code review details. There is a full writeup of what happens in “What does Danger do?”. For now that’s enough.

The Dangerfile is where you create your rules, Danger comes with no rules set up by default. This is on purpose, we don’t know your culture.

We’ve found it easier to start with something as simple as

if github.pr_body.length < 5
  fail "Please provide a summary in the Pull Request description"

Which is a pretty safe bet. Then over time, when your team notices that something can be easily automated, you add it as another rule. Bit by bit.

Where to go from here: - Working locally on your Dangerfile

Got improvements? Help improve this document via sending MRs.