MagicMirror/dangerfile.js

9 lines
370 B
JavaScript
Raw Normal View History

2018-01-25 19:51:23 +01:00
import { danger, fail } from 'danger'
2018-01-25 16:24:05 +01:00
2018-01-25 19:51:23 +01:00
// Check if the CHANGELOG.md file has been edited
const changelogEdited = danger.git.modified_files.includes('CHANGELOG.md')
2018-01-25 19:51:23 +01:00
// Fail the build and post a comment reminding submitters to do so if it wasn't changed
if (!changelogEdited) {
fail('Please include a CHANGELOG entry. You can find it at [CHANGELOG.md](CHANGELOG.md).')
2018-01-25 16:24:05 +01:00
}