go-playground / webhooks

:fishing_pole_and_fish: Webhook receiver for GitHub, Bitbucket, GitLab, Gogs
MIT License
962 stars 236 forks source link

Typo of field in PushEventPayload and TagEventPayload #153

Closed lilincmu closed 1 year ago

lilincmu commented 2 years ago

Fix the json field name of Project in GitLab's PushEventPayload and TagEventPayload. The json field name should be lowercase project according to https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html#push-events.

{
  "object_kind": "push",
  "event_name": "push",
  ...
  "project":{
    "id": 15,
    ...
  },
  ...
}

Would love to have this fixed since some services we're interacting with expect the project field to exist and throw error when we use this library.