Skip to content

Commit d17f290

Browse files
committed
chore(danger): don't fail if not using the pr template and wrote some stuff
1 parent 7554bac commit d17f290

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dangerfile.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ function rules() {
2727
);
2828
} else {
2929
// Remind people to add some details to the description, 200 accounts for roughly a sentence more than the standard template headers.
30-
if (pr.body.length < 200) {
30+
if (pr.body.includes('Thank you!') && pr.body.length < 200) {
31+
fail('Please add some non-placeholder details to the PR description.');
32+
} else if (pr.body.length < 80) {
33+
// if not using the template
3134
fail('Please add some non-placeholder details to the PR description.');
3235
}
3336

0 commit comments

Comments
 (0)