From 543f5835db800b7b65ea38c200dff4dfa367cf33 Mon Sep 17 00:00:00 2001 From: Camilla Conte <6077146-spotlesstofu@users.noreply.gitlab.com> Date: Thu, 30 Jun 2022 09:28:28 +0000 Subject: [PATCH] Document `object_attributes.oldrev` in the merge request webhook event Source: merge request which introduced it - https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/5535 --- doc/user/project/integrations/webhook_events.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/user/project/integrations/webhook_events.md b/doc/user/project/integrations/webhook_events.md index d05e9533d7df6..e6bf766e17791 100644 --- a/doc/user/project/integrations/webhook_events.md +++ b/doc/user/project/integrations/webhook_events.md @@ -824,6 +824,11 @@ The available values for `object_attributes.action` in the payload are: - `unapproval` - `merge` +The field `object_attributes.oldrev` is only available when there are actual code changes, like: + +- New code is pushed. +- A [suggestion](../merge_requests/reviews/suggestions.md) is applied. + Request header: ```plaintext -- GitLab