diff --git a/dangerfile.ts b/dangerfile.ts index aa18c0ad9d..fa2ae8ed9a 100644 --- a/dangerfile.ts +++ b/dangerfile.ts @@ -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__/**');