bigbuffet-rw/dangerfile.ts
Alex Gleason 9046a30656
Revert "Remove Danger CI"
This reverts commit ae4a770d6b.
2022-06-17 18:21:45 -05:00

13 lines
408 B
TypeScript

import { danger, warn, message } from 'danger';
const docs = danger.git.fileMatch('docs/**/*.md');
const app = danger.git.fileMatch('app/**/*.(js|ts|tsx)');
const tests = danger.git.fileMatch('*/__tests__/*');
if (docs.edited) {
message('Thanks - We :heart: our [documentarians](http://www.writethedocs.org/)!');
}
if (app.modified && !tests.modified) {
warn('You have app changes without tests.');
}