gitbeaker icon indicating copy to clipboard operation
gitbeaker copied to clipboard

Improve webhook reviewer type definitions

Open liby opened this issue 1 month ago • 0 comments

  • Extract ReviewerState type to avoid duplication between Webhooks and MergeRequests
  • Add WebhookReviewerSchema with proper state and re_requested fields
  • Add email field to WebhookUserSchema based on actual webhook payloads
  • Add missing 'unapproved' state found in production webhooks
  • Update changes.reviewers to use WebhookReviewerSchema

References:

  • https://docs.gitlab.com/user/project/integrations/webhook_events/#reviewer-state-tracking
  • https://docs.gitlab.com/user/project/integrations/webhook_events/#re-request-review-events

liby avatar Nov 24 '25 12:11 liby