Skip to content

Commit

Permalink
other: Set up initial danger config
Browse files Browse the repository at this point in the history
  • Loading branch information
viestat committed Jan 11, 2018
1 parent f623c15 commit 10c1226
Show file tree
Hide file tree
Showing 4 changed files with 523 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ services:

language: node_js

script: "npm test"
script:
- npm test
- yarn danger ci

node_js:
- "8"
9 changes: 9 additions & 0 deletions Dangerfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const {danger, warn} = require('danger')


// No PR is too small to include a description of why you made a change
if (danger.github.pr.body.length < 10) {
warn('Please include a description of your PR changes.');
}


1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"devDependencies": {
"chai": "^4.1.2",
"danger": "^3.0.3",
"eslint": "^4.8.0",
"eslint-config-warp": "^2.1.0",
"mocha": "^4.1.0",
Expand Down
Loading

0 comments on commit 10c1226

Please sign in to comment.