mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 12:12:20 +00:00
Import 'includes' from lodash.
This commit is contained in:
parent
bad6575d83
commit
d803d9eaf9
@ -1,9 +1,8 @@
|
|||||||
import { message, danger } from "danger"
|
import { message, danger } from "danger"
|
||||||
|
import { includes } from "lodash"
|
||||||
|
|
||||||
// Add a CHANGELOG entry for app changes
|
// Add a CHANGELOG entry for app changes
|
||||||
const hasChangelog = includes(danger.git.modified_files, "CHANGELOG.md")
|
const hasChangelog = includes(danger.git.modified_files, "CHANGELOG.md")
|
||||||
const isTrivial = contains((danger.github.pr.body + danger.github.pr.title), "#trivial")
|
if (!hasChangelog) {
|
||||||
|
|
||||||
if (!hasChangelog && !isTrivial) {
|
|
||||||
warn("Please add a `CHANGELOG.md` entry for your changes.")
|
warn("Please add a `CHANGELOG.md` entry for your changes.")
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user