new hook updates

This commit is contained in:
Nico Alba
2026-05-18 16:37:58 +00:00
parent fc3492829e
commit 2c56fc4e43
+1 -3
View File
@@ -1,7 +1,5 @@
name: mattermost-doc-alerts
on:
issues:
types: [opened, closed, reopened]
issue_comment:
pull_request_review:
types: [submitted]
@@ -23,7 +21,7 @@ jobs:
- name: Strip Vercel HTML from event JSON
id: preprocess
run: |
CLEANED_JSON=$(jq -c 'if .comment.body then .comment.body |= gsub("\\s*<a\\b[^>]*vercel\\.com[^>]*>.*?</a>"; ""; "ig") else . end' "$GITHUB_EVENT_PATH")
CLEANED_JSON=$(jq -c 'if .comment.body then .comment.body |= (gsub("\\s*<a\\b[^>]*vercel\\.com[^>]*>.*?</a>"; ""; "ig") | gsub("\\[vc\\]: #[^\\n]*\\n?"; "")) else . end' "$GITHUB_EVENT_PATH")
echo "event_json<<DELIM" >> "$GITHUB_OUTPUT"
echo "$CLEANED_JSON" >> "$GITHUB_OUTPUT"
echo "DELIM" >> "$GITHUB_OUTPUT"