From 2c56fc4e43d5f845408f6ff99c0d5b0a1b0cfa25 Mon Sep 17 00:00:00 2001 From: Nico Alba Date: Mon, 18 May 2026 16:37:58 +0000 Subject: [PATCH] new hook updates --- .github/workflows/mattermost-doc-alerts.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/mattermost-doc-alerts.yml b/.github/workflows/mattermost-doc-alerts.yml index d3543b7b..ac386f7c 100644 --- a/.github/workflows/mattermost-doc-alerts.yml +++ b/.github/workflows/mattermost-doc-alerts.yml @@ -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*]*vercel\\.com[^>]*>.*?"; ""; "ig") else . end' "$GITHUB_EVENT_PATH") + CLEANED_JSON=$(jq -c 'if .comment.body then .comment.body |= (gsub("\\s*]*vercel\\.com[^>]*>.*?"; ""; "ig") | gsub("\\[vc\\]: #[^\\n]*\\n?"; "")) else . end' "$GITHUB_EVENT_PATH") echo "event_json<> "$GITHUB_OUTPUT" echo "$CLEANED_JSON" >> "$GITHUB_OUTPUT" echo "DELIM" >> "$GITHUB_OUTPUT"