The Slack alert script defaults to #wavinghands-notifications

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0141G6xqLeNRYEtviLWSB5Up
This commit is contained in:
Eric Wagoner
2026-09-23 10:37:53 -04:00
co-authored by Claude Fable 5.1
parent 7485d50b8d
commit c24fccaa35
+5 -3
View File
@@ -2,7 +2,9 @@
# Route every Waving Hands issue to a Slack channel: new issues (any level or # Route every Waving Hands issue to a Slack channel: new issues (any level or
# priority), regressions, and reappearances. Creates one Sentry workflow # priority), regressions, and reappearances. Creates one Sentry workflow
# via the alerts API. The token never leaves your shell: # via the alerts API. The token never leaves your shell:
# SENTRY_TOKEN=sntryu_... SLACK_CHANNEL_ID=C... deploy/sentry-slack-alert.sh [#channel] # SENTRY_TOKEN=sntryu_... deploy/sentry-slack-alert.sh [#channel]
# The channel defaults to #wavinghands-notifications (C0C3R3B2MQB); pass
# SLACK_CHANNEL_ID with the channel name to route elsewhere.
# The token needs the alerts:write scope (an org auth token from # The token needs the alerts:write scope (an org auth token from
# https://locallygrownnet.sentry.io/settings/auth-tokens/), and Slack must # https://locallygrownnet.sentry.io/settings/auth-tokens/), and Slack must
# already be connected to the org under Settings → Integrations. # already be connected to the org under Settings → Integrations.
@@ -10,7 +12,7 @@ set -euo pipefail
: "${SENTRY_TOKEN:?SENTRY_TOKEN=sntryu_... is required (alerts:write)}" : "${SENTRY_TOKEN:?SENTRY_TOKEN=sntryu_... is required (alerts:write)}"
ORG="${SENTRY_ORG:-locallygrownnet}" ORG="${SENTRY_ORG:-locallygrownnet}"
PROJECT="${SENTRY_PROJECT:-waving-hands}" PROJECT="${SENTRY_PROJECT:-waving-hands}"
CHANNEL="${1:-#waving-hands-notifications}" CHANNEL="${1:-#wavinghands-notifications}"
API="https://us.sentry.io/api/0/organizations/$ORG" API="https://us.sentry.io/api/0/organizations/$ORG"
AUTH="Authorization: Bearer $SENTRY_TOKEN" AUTH="Authorization: Bearer $SENTRY_TOKEN"
@@ -18,7 +20,7 @@ AUTH="Authorization: Bearer $SENTRY_TOKEN"
# project's error detector is looked up by project id; a workflow is bound # project's error detector is looked up by project id; a workflow is bound
# to its detectors by PUT after creation. # to its detectors by PUT after creation.
SLACK_ID="${SENTRY_SLACK_INTEGRATION:-345334}" SLACK_ID="${SENTRY_SLACK_INTEGRATION:-345334}"
CHANNEL_ID="${SLACK_CHANNEL_ID:?SLACK_CHANNEL_ID=C... is required (the Slack ID of the channel)}" CHANNEL_ID="${SLACK_CHANNEL_ID:-C0C3R3B2MQB}"
PROJECT_ID="${SENTRY_PROJECT_ID:-4512133232787456}" PROJECT_ID="${SENTRY_PROJECT_ID:-4512133232787456}"
echo "Slack integration $SLACK_ID; project $PROJECT_ID; channel $CHANNEL ($CHANNEL_ID)" echo "Slack integration $SLACK_ID; project $PROJECT_ID; channel $CHANNEL ($CHANNEL_ID)"