Skip to content

feat(slack): adds slash command for read-in summaries #6126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 14, 2025

Conversation

whitdog47
Copy link
Contributor

@whitdog47 whitdog47 commented Jul 11, 2025

This PR introduces a new Slack slash command, /dispatch-summary, which generates AI-powered read-in summaries for incidents or cases.

  • Registers the /dispatch-summary command and implements its handler in the interactive module.
  • Adds a new slack_command_summary configuration field and migrates existing plugin instances.
  • Updates documentation to include the new command.

@whitdog47 whitdog47 requested a review from Copilot July 11, 2025 17:38
@whitdog47 whitdog47 self-assigned this Jul 11, 2025
@whitdog47 whitdog47 added the enhancement New feature or request label Jul 11, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-summary command and implements its handler in the interactive module.
  • Adds a new slack_command_summary configuration 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(

@whitdog47 whitdog47 merged commit 8f0d4be into main Jul 14, 2025
9 checks passed
@whitdog47 whitdog47 deleted the feat/slash-command-for-readin branch July 14, 2025 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants