Import 'includes' from lodash.

This commit is contained in:
Michael Teeuw 2018-01-25 16:39:49 +01:00
parent bad6575d83
commit d803d9eaf9

View File

@ -1,9 +1,8 @@
import { message, danger } from "danger"
import { includes } from "lodash"
// 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) {
if (!hasChangelog) {
warn("Please add a `CHANGELOG.md` entry for your changes.")
}