Skip to content

Support dispatcher routing for ProjectWebhookEvent #381

@flc1125

Description

@flc1125

Background

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

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

Problem

Although ProjectWebhookEvent 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 ProjectWebhookEvent, including:

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

Acceptance Criteria

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions