From aa34984d7c3cb2898d5c8513e23e136cfd7b4696 Mon Sep 17 00:00:00 2001 From: Jeff Bradberry Date: Wed, 11 Sep 2019 12:09:26 -0400 Subject: [PATCH] Fix the git ref extractor for Gitlab pull requests --- awx/api/views/webhooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/views/webhooks.py b/awx/api/views/webhooks.py index a7ac706b6b..be673c6af4 100644 --- a/awx/api/views/webhooks.py +++ b/awx/api/views/webhooks.py @@ -195,7 +195,7 @@ class GitlabWebhookReceiver(WebhookReceiverBase): event_keys = { 'Push Hook': 'checkout_sha', 'Tag Push Hook': 'checkout_sha', - 'Merge Request Hook': 'last_commit.id', + 'Merge Request Hook': 'object_attributes.last_commit.id', } def get_event_type(self):