Skip to content

Commit

Permalink
ci: add Danger
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Feb 9, 2018
1 parent 5e01e6b commit bcafe77
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ script:
after_script: greenkeeper-lockfile-upload
jobs:
include:
- stage: danger
node_js: 8
os: linux
script:
- npx -p danger@^3 danger ci
- stage: release
node_js: 8
os: linux
Expand Down
8 changes: 8 additions & 0 deletions dangerfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

const { danger, fail } = require('danger');

// Ensure that people include a description on their PRs
if (danger.github.pr.body.length === 0) {
fail('Please include a body for your PR');
}

0 comments on commit bcafe77

Please sign in to comment.