Skip to content

feat(infra): post to Slack #telemetry when a bug ticket is filed#265

Merged
jinhongkuan merged 1 commit into
devfrom
feat/slack-bug-notify
May 7, 2026
Merged

feat(infra): post to Slack #telemetry when a bug ticket is filed#265
jinhongkuan merged 1 commit into
devfrom
feat/slack-bug-notify

Conversation

@jinhongkuan

Copy link
Copy Markdown
Contributor

Adds .github/workflows/notify-slack-on-bug.yml that posts to the #telemetry Slack channel whenever an issue is opened with — or later labeled — `bug`.

Coverage

  • Manual issue filings labeled `bug`
  • `/bicameral-report-bug` skill submissions (which file with `dev,bug` labels)
  • Late-labeled issues (in case triage adds `bug` after the fact)

Setup required (one-time, by repo admin — can't automate)

  1. Slack: create an incoming webhook for the #telemetry channel
  2. GitHub: Repo Settings → Secrets and variables → Actions → New repository secret:
    • Name: `SLACK_TELEMETRY_WEBHOOK_URL`
    • Value: the webhook URL from step 1

Until the secret exists, the job is a no-op (the slack-github-action step fails closed when the webhook URL is empty).

Message shape

Header: ":lady_beetle: New bug — #N"
Section: bold issue title (linked)
Context: "Filed by @user in BicameralAI/bicameral-mcp"

Test plan

  • After merge + secret added: open a test issue with `bug` label, verify it posts to #telemetry
  • Strip the `bug` label, re-add it: should NOT re-fire (only fires on `opened` + `labeled` events; re-labeling adds a new event but the if-clause only triggers when the label being added IS `bug`)
  • Open an issue WITHOUT `bug`, then add `bug` label: should fire once on the labeled event

New workflow `.github/workflows/notify-slack-on-bug.yml` triggers on
issues opened-with-`bug`-label OR labeled-with-`bug`-after-the-fact.
Posts a structured Slack message (header + title link + author/repo
context) via incoming webhook to the #telemetry channel.

Covers both:
- Manual issue filings labeled `bug`
- /bicameral-report-bug skill submissions (which file with labels
  `dev,bug` per skills/bicameral-report-bug/SKILL.md)

Setup required (one-time, by repo admin):
1. Create an incoming webhook for #telemetry on Slack
2. Add the URL as repo secret SLACK_TELEMETRY_WEBHOOK_URL

Without the secret the job is a no-op. The slack-github-action step
fails closed when the webhook URL is empty, so no spurious notifications.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented May 7, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f9e1a732-0b95-42f4-a4ae-609979ff73af

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/slack-bug-notify

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@jinhongkuan jinhongkuan merged commit a978d78 into dev May 7, 2026
6 checks passed
@jinhongkuan jinhongkuan deleted the feat/slack-bug-notify branch May 7, 2026 21:51
Knapp-Kevin pushed a commit to Knapp-Kevin/bicameral-mcp that referenced this pull request May 21, 2026
This was the wrong shape — committing internal-ops Slack routing into
the public-ish repo. The cleaner pattern is GitHub's official Slack app
(slack.github.com), which lives entirely in Slack workspace config:
no code commit, no repo secret, can be toggled or filtered without
opening a PR.

Setup (one-time, by a Slack workspace admin in #telemetry):

  /github subscribe BicameralAI/bicameral-mcp issues +label:bug

That single command covers:
- Manual issue filings labeled `bug`
- /bicameral-report-bug skill submissions (which file with `dev,bug`)
- Late-labeled issues (re-fires when `bug` is added)

Reverts PR BicameralAI#265 (commit c545d6b).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant