[go: up one dir, main page]

Skip to content

object_attributes.oldrev not present in webhook merge request event

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

According to documentation https://docs.gitlab.com/user/project/integrations/webhook_events/#merge-request-events

The field object_attributes.oldrev is only available when there are actual code changes, like:

  • New code is pushed.
  • A suggestion is applied.

After triggering multiple merge request event webhooks, we are still not seeing this element in the JSON payload, even with code changes present in the merge request.

Steps to recreate:

  • Select a project with an open merge request where code changes have been made
  • Go to settings, webhooks, click on the Test caret button, select merge request events.
  • The headers should display an http 200 OK message.
  • Check the request details, request section.
  • No oldrev present.
Edited by 🤖 GitLab Bot 🤖