Danger: warn when CHANGELOG.md isn't updated
This commit is contained in:
parent
4a1ae9798a
commit
b030c15583
1 changed files with 7 additions and 0 deletions
|
@ -7,6 +7,13 @@ if (docs.edited) {
|
|||
message('Thanks - We :heart: our [documentarians](http://www.writethedocs.org/)!');
|
||||
}
|
||||
|
||||
// Enforce CHANGELOG.md additions
|
||||
const changelog = danger.git.fileMatch('CHANGELOG.md');
|
||||
|
||||
if (!changelog.edited) {
|
||||
warn('You have not updated `CHANGELOG.md`. If this change directly impacts users, you should update the changelog. Otherwise you can ignore this message. See: https://keepachangelog.com');
|
||||
}
|
||||
|
||||
// UI components
|
||||
const uiCode = danger.git.fileMatch('app/soapbox/components/ui/**');
|
||||
const uiTests = danger.git.fileMatch('app/soapbox/components/ui/**/__tests__/**');
|
||||
|
|
Loading…
Reference in a new issue