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

Conversation

@wssheldon
Copy link
Contributor

No description provided.

@wssheldon wssheldon self-assigned this May 20, 2025
@wssheldon wssheldon added the bug Something isn't working label May 20, 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 fixes the slack plugin activity fetch functionality by streamlining the fetch_events method.

  • Simplifies the function signature and docstring.
  • Removes redundant event type checking and changes exception handling.
Comments suppressed due to low confidence (1)

src/dispatch/plugins/dispatch_slack/plugin.py:437

  • The checks for event being None or a type have been removed. Ensure that event will always be a valid object with a fetch_activity method before invoking it.
activity = event.fetch_activity(client, subject, oldest)

wssheldon and others added 2 commits May 20, 2025 15:23
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Will Sheldon <114631109+wssheldon@users.noreply.github.com>
wssheldon and others added 2 commits May 20, 2025 16:02
Co-authored-by: Marc Vilanova <39573146+mvilanova@users.noreply.github.com>
Signed-off-by: Will Sheldon <114631109+wssheldon@users.noreply.github.com>
@wssheldon wssheldon merged commit d12ac00 into main May 20, 2025
9 checks passed
@wssheldon wssheldon deleted the fix/actvitiy-events branch May 20, 2025 23:15
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