Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Conversation

@mvilanova
Copy link
Contributor

No description provided.

@mvilanova mvilanova self-assigned this Jun 10, 2025
@mvilanova mvilanova added the bug Something isn't working label Jun 10, 2025
Copy link
Contributor

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 addresses an issue where Slack messages may exceed Block Kit's 3000-character limit by truncating the message text appropriately. Key changes include:

  • Modifying the message truncation logic to include a header and ensure the overall text (with header) remains within limits.
  • Updating the pre-commit configuration to use the "pre-push" stage instead of "push".

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/dispatch/plugins/dispatch_slack/case/messages.py Updates truncation logic to prepend a header and limit text length to 3000 characters.
.pre-commit-config.yaml Changes stage from "push" to "pre-push" for the pytest hook.

@mvilanova mvilanova merged commit 34e303b into main Jun 11, 2025
9 checks passed
@mvilanova mvilanova deleted the fix/genai-slack-message branch June 11, 2025 19:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants