Skip to content

Commit 31312d2

Browse files
committed
meh
1 parent 8ddc82e commit 31312d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/prauto.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,23 @@ jobs:
3939
exit 0
4040
fi
4141
42-
if echo $PRBODY | wc -w | grep '^[0-9]$'
42+
if echo "${PRBODY}" | wc -w | grep -E '^[0-9]$'
4343
then
4444
commentPR "Thanks for the PR! We're a small team and it's helpful to have context around community submissions in order to review them appropriately. Our automation has closed this PR since the body appears to be lacking much content; please add a more descriptive PR body as well as any issues it closes and reopen. Thanks again!"
4545
closePR
4646
exit 0
4747
fi
4848
49-
if echo $PRBASE | grep -Ev "^trunk$"
49+
if echo "${PRBASE}" | grep -Ev "^trunk$"
5050
then
5151
commentPR "This pull request should probably be targeting trunk; since it isn't, our automation has closed it. Please reopen with an appropriate base branch if this was in error."
5252
closePR
5353
exit 0
5454
fi
5555
56-
if echo $PRBODY | grep -Ev " \#\d+ "
56+
if echo "${PRBODY}" | grep -Ev " \#\d+ "
5757
then
58-
commentPR "Hi! Thanks for the PR. Please ensure that this PR is related to an issue by mentioning its issue number in the PR body. If this PR would close the issue, please put 'Fixes #<issue number>' somewhere in the PR body. If this is a tiny change like fixing a typo, feel free to ignore this message."
58+
commentPR "Hi! Thanks for the PR. Please ensure that this PR is related to an issue by mentioning its issue number in the PR body. If this PR would close the issue, please put the word 'Fixes' before the issue number somewhere in the PR body. If this is a tiny change like fixing a typo, feel free to ignore this message."
5959
# TODO should this be close-worthy? I feel like sometimes it's ok
6060
# to not have an issue (like a tiny typo fix) so we should have
6161
# this be a warning.

0 commit comments

Comments
 (0)