From 6d31b9bf2e5e6e88410e2a17204cf478df7b6d8b Mon Sep 17 00:00:00 2001 From: Claude BM Date: Tue, 28 Apr 2026 15:03:18 +0000 Subject: [PATCH] Add PRODUCTION alert for main branch CI failures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When CI fails on main, notification escalates to 🚨 with "PRODUCTION CI FAILED" header and instructions to verify tsharps.com is still working. Co-Authored-By: Claude Opus 4.6 (1M context) --- ci-notify.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/ci-notify.sh b/ci-notify.sh index dffff4d..96ee352 100755 --- a/ci-notify.sh +++ b/ci-notify.sh @@ -35,7 +35,24 @@ ${SUITE_INFO} elif [ "$STATUS" = "fail" ]; then ICON="❌" - MSG="${ICON} CI FAILED on ${BRANCH} (${COMMIT}) + if [ "$BRANCH" = "main" ]; then + ICON="🚨" + MSG="${ICON} PRODUCTION CI FAILED on main (${COMMIT}) + +⚠️ PRODUCTION DEPLOY SHOULD BE BLOCKED — tests did not pass. +If deploy-production.yml ran, it should have reverted automatically. +Verify tsharps.com is still working! + +Tests: ${SUMMARY} +Features: ${FEATURES} +Duration: ${DURATION} +Pushed by: ${ACTOR} +${SUITE_INFO} + +${TAG_USERS} — PRODUCTION needs immediate attention. +@TSHARPSbm_bot" + else + MSG="${ICON} CI FAILED on ${BRANCH} (${COMMIT}) Tests: ${SUMMARY} Features: ${FEATURES} @@ -45,6 +62,7 @@ ${SUITE_INFO} ${TAG_USERS} — this build needs attention. @TSHARPSbm_bot" + fi elif [ "$STATUS" = "error" ]; then ICON="🚨"