Danger: modified --> edited

This commit is contained in:
Alex Gleason 2022-08-05 11:16:33 -05:00
parent 027c871814
commit dd50c2d6c7
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ if (docs.edited) {
const uiCode = danger.git.fileMatch('app/soapbox/components/ui/**');
const uiTests = danger.git.fileMatch('app/soapbox/components/ui/**/__tests__/**');
if (uiCode.modified && !uiTests.modified) {
if (uiCode.edited && !uiTests.edited) {
warn('You have UI changes (`soapbox/components/ui`) without tests.');
}
@ -19,7 +19,7 @@ if (uiCode.modified && !uiTests.modified) {
const actionsCode = danger.git.fileMatch('app/soapbox/actions/**');
const actionsTests = danger.git.fileMatch('app/soapbox/actions/**__tests__/**');
if (actionsCode.modified && !actionsTests.modified) {
if (actionsCode.edited && !actionsTests.edited) {
warn('You have actions changes (`soapbox/actions`) without tests.');
}
@ -27,6 +27,6 @@ if (actionsCode.modified && !actionsTests.modified) {
const reducersCode = danger.git.fileMatch('app/soapbox/reducers/**');
const reducersTests = danger.git.fileMatch('app/soapbox/reducers/**__tests__/**');
if (reducersCode.modified && !reducersTests.modified) {
if (reducersCode.edited && !reducersTests.edited) {
warn('You have reducer changes (`soapbox/reducers`) without tests.');
}