From 34b0a28efca05201b39648c3de0900db07e16bc1 Mon Sep 17 00:00:00 2001 From: Marie Idleman Date: Thu, 12 Dec 2024 09:47:12 -0600 Subject: [PATCH] ci: add hidden red alert in PR comment (#5713) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just added a hidden comment in the "PR comments" to prevent people from editing them there. If someone tries to edit comment below, they should be guided to the right place: Screenshot 2024-12-12 at 9 41 18 AM --- scripts/pr-e2e-comment.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/pr-e2e-comment.sh b/scripts/pr-e2e-comment.sh index 0995b29bb58..c1dadd61ab7 100644 --- a/scripts/pr-e2e-comment.sh +++ b/scripts/pr-e2e-comment.sh @@ -40,8 +40,11 @@ COMMENT_ID=$(echo "$COMMENTS" | jq -r ".[] | select(.body | contains(\"$COMMENT_ # Format the tags with individual backticks FORMATTED_TAGS=$(echo "$TAGS" | sed 's/,/` `/g' | sed 's/^/`/' | sed 's/$/`/') +# Add the "🚨 RED ALERT!" note +RED_ALERT_NOTE="" + # Build the new comment body with proper newlines -NEW_COMMENT=$(printf "${COMMENT_MARKER}\n\n**E2E Tests** 🚀  [?](https://github.com/posit-dev/positron/blob/main/test/e2e/README.md#pull-requests-and-test-tags)\nThis PR will run tests tagged with: %s" "$FORMATTED_TAGS") +NEW_COMMENT=$(printf "${COMMENT_MARKER}\n${RED_ALERT_NOTE}\n\n**E2E Tests** 🚀  [?](https://github.com/posit-dev/positron/blob/main/test/e2e/README.md#pull-requests-and-test-tags)\nThis PR will run tests tagged with: %s" "$FORMATTED_TAGS") if [ -n "$COMMENT_ID" ]; then # Update the existing comment