Skip to content

Support dispatcher routing for EmojiEvent #378

@flc1125

Description

@flc1125

Background

The upstream GitLab Go client already supports parsing EmojiEvent in ParseWebhook(...):

However, the dispatcher in this repository does not currently support routing *gitlab.EmojiEvent.

Problem

Although EmojiEvent can already be parsed by the upstream client, it cannot be dispatched further in this project, which effectively makes it unsupported here.

Expected

Add dispatcher support for EmojiEvent, including:

  • listener definition
  • listener registration
  • a Dispatch(...) branch
  • the corresponding handler function
  • basic tests

Acceptance Criteria

  • Dispatcher.Dispatch(...) can handle *gitlab.EmojiEvent
  • dispatching *gitlab.EmojiEvent no longer returns ErrUnsupportedEvent
  • registered listeners are invoked correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions