Skip to content

feat: Add system and system_action to WebhookMergeRequestEventSchema#3847

Open
kang8 wants to merge 1 commit into
jdalrymple:mainfrom
kang8:feat/mr-webhook-system-fields
Open

feat: Add system and system_action to WebhookMergeRequestEventSchema#3847
kang8 wants to merge 1 commit into
jdalrymple:mainfrom
kang8:feat/mr-webhook-system-fields

Conversation

@kang8

@kang8 kang8 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

GitLab merge request webhooks include object_attributes.system (always present) and object_attributes.system_action (present only on system-initiated events, e.g. approval resets on push), but neither is declared on WebhookMergeRequestEventSchema. This PR adds both.

  • system: boolean mirrors the existing system: boolean already present in the note webhook schemas.
  • system_action? is an optional, documented two-value union (approvals_reset_on_push | code_owner_approvals_reset_on_push), exposed as an exported MergeRequestSystemAction type mirroring the neighbouring ReviewerState type.

Ref: GitLab webhook events — merge request events

GitLab merge request webhooks include object_attributes.system (always
present) and object_attributes.system_action (present only on
system-initiated events, e.g. approval resets on push), but neither was
declared on WebhookMergeRequestEventSchema. Add both; system mirrors the
existing system: boolean in the note webhook schemas, and system_action
is a documented two-value union.

Ref: https://docs.gitlab.com/user/project/integrations/webhook_events/#merge-request-events
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant