Add Danger.js

This commit is contained in:
Michael Teeuw
2018-01-25 16:24:05 +01:00
parent fbcb7ae836
commit bad6575d83
6 changed files with 5089 additions and 128 deletions

9
dangerfile.js Normal file
View File

@@ -0,0 +1,9 @@
import { message, danger } from "danger"
// Add a CHANGELOG entry for app changes
const hasChangelog = includes(danger.git.modified_files, "CHANGELOG.md")
const isTrivial = contains((danger.github.pr.body + danger.github.pr.title), "#trivial")
if (!hasChangelog && !isTrivial) {
warn("Please add a `CHANGELOG.md` entry for your changes.")
}