Add Danger See merge request soapbox-pub/soapbox-fe!1535environments/review-develop-3zknud/deployments/285
commit
04145ac1b0
@ -0,0 +1,13 @@
|
||||
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.');
|
||||
}
|
Loading…
Reference in new issue