This repository was archived by the owner on Sep 3, 2025. It is now read-only.
feat(slack): adds slash command for read-in summaries#6126
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new Slack slash command, /dispatch-summary, which generates AI-powered read-in summaries for incidents or cases.
- Registers the
/dispatch-summarycommand and implements its handler in the interactive module. - Adds a new
slack_command_summaryconfiguration field and migrates existing plugin instances. - Updates documentation to include the new command.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/dispatch/plugins/dispatch_slack/incident/interactive.py | Registers /dispatch-summary and implements handle_summary_command |
| src/dispatch/plugins/dispatch_slack/config.py | Adds slack_command_summary field to SlackConversationConfiguration |
| src/dispatch/database/revisions/tenant/versions/2025-07-11_aa87efd3d6c1.py | Migration to set the new command default for existing Slack plugin instances |
| docs/docs/administration/settings/plugins/configuring-slack.mdx | Documents the /dispatch-summary command |
Comments suppressed due to low confidence (1)
src/dispatch/plugins/dispatch_slack/incident/interactive.py:3012
- There are no unit tests covering handle_summary_command; consider adding tests for different contexts (restricted visibility, feature disabled, successful generation, and error paths) to ensure reliability.
def handle_summary_command(
ghost
approved these changes
Jul 11, 2025
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This PR introduces a new Slack slash command,
/dispatch-summary, which generates AI-powered read-in summaries for incidents or cases./dispatch-summarycommand and implements its handler in the interactive module.slack_command_summaryconfiguration field and migrates existing plugin instances.