mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-10-12 15:34:58 +00:00
9 lines
346 B
JavaScript
9 lines
346 B
JavaScript
![]() |
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.")
|
||
|
}
|