MagicMirror/dangerfile.js

9 lines
346 B
JavaScript
Raw Normal View History

2018-01-25 16:24:05 +01:00
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) {
2018-01-25 16:24:05 +01:00
warn("Please add a `CHANGELOG.md` entry for your changes.")
}