This repository contains a Dangerfile containing branch naming, commit, and other code rules that can be used to run inside your continuous integration (CI) environment.
Note: This can only be used when JaCoCo coverage reports have been generated.
- Define environment variables
# List of modules to locate path of JaCoCo coverage results DANGER_MODULES=module1,module2 # Ticket number regex DANGER_TICKET_NUM_REGEX=(ABC|DEFG)-\d{3,5}
- Run Danger
bundle install bundle exec danger --dangerfile=<path to Dangerfile>