Skip to content

Commit 019907a

Browse files
authored
chore: Remove characters from comment bodies before calling xargs (#156)
1 parent 4f49078 commit 019907a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/issue_comment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
BODY: ${{ toJson(github.event.comment.body) }}
1717
COMMENT_URL: ${{github.event.comment.html_url}}
1818
shell: bash
19-
run: echo $BODY | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"body":"{}", "issue":"'$COMMENT_URL'"}'
19+
run: echo $BODY | sed "s/\\\n/. /g; s/\\\r//g; s/[^a-zA-Z0-9 &().,:]//g" | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"body":"{}", "issue":"'$COMMENT_URL'"}'
2020

2121
remove-pending-response-label:
2222
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)