9 lines
336 B
JavaScript
9 lines
336 B
JavaScript
import { danger, warn } from 'danger';
|
|
|
|
// Check for a CHANGELOG entry
|
|
const hasChangelog = danger.git.modified_files.some(f => f === 'CHANGELOG.md');
|
|
if (!hasChangelog) {
|
|
const title = ':page_facing_up: Changelog Entry Missing';
|
|
const idea = 'Please add a changelog entry for your changes.';
|
|
warn(`${title} - <i>${idea}</i>`);
|
|
}
|