mirror of
https://github.com/ansible/awx.git
synced 2026-02-19 20:20:06 -03:30
return status on event types defined in ref_keys
This commit is contained in:
@@ -204,6 +204,8 @@ class GitlabWebhookReceiver(WebhookReceiverBase):
|
|||||||
return h.hexdigest()
|
return h.hexdigest()
|
||||||
|
|
||||||
def get_event_status_api(self):
|
def get_event_status_api(self):
|
||||||
|
if self.get_event_type() not in self.ref_keys.keys():
|
||||||
|
return
|
||||||
project = self.request.data.get('project', {})
|
project = self.request.data.get('project', {})
|
||||||
repo_url = project.get('web_url')
|
repo_url = project.get('web_url')
|
||||||
if not repo_url:
|
if not repo_url:
|
||||||
|
|||||||
Reference in New Issue
Block a user