mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +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 { 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.")
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user