feat(slack): Support /inc commands from status channels#227
Open
rgibert wants to merge 2 commits into
Open
Conversation
Widen get_incident_from_channel() to match both SLACK and SLACK_STATUS external link types so that all /inc subcommands work when invoked from #inc-xxxx-status channels, not just #inc-xxxx channels. Co-Authored-By: Claude <noreply@anthropic.com> Agent transcript: https://claudescope.sentry.dev/share/1916-J5mTBUq1rWOsQKlW0oPxhcm3_fbansaBOUpC-4
When a statuspage is created or updated, post the success message to both the #inc-xxxx and #inc-xxxx-status channels instead of only the channel where the command was invoked. Co-Authored-By: Claude <noreply@anthropic.com> Agent transcript: https://claudescope.sentry.dev/share/TCV_LlIlxvhThL87jYMr4xWtFyS4HG02qhfy6RPykME
spalmurray
approved these changes
Jun 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Widen Slack channel handling so that all `/inc` subcommands and statuspage notifications work seamlessly from both `#inc-xxxx` and `#inc-xxxx-status` channels.
Channel lookup -- `get_incident_from_channel()` now matches both `ExternalLinkType.SLACK` and `ExternalLinkType.SLACK_STATUS`, so commands invoked from the status channel resolve to the correct incident.
Statuspage notifications -- when a statuspage is created or updated, the success message is posted to both the incident channel and the status channel (previously it only went to whichever channel the command was invoked from).