Danger: warn when CHANGELOG.md isn't updated

environments/review-changelogg-ol2hll/deployments/1743
Alex Gleason 2022-12-14 17:50:37 -06:00
rodzic 4a1ae9798a
commit b030c15583
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -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__/**');