From f0a9f00b57b4c0128e4ee75c4d8359fa0e35dae7 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 15 Oct 2019 16:14:15 +0100 Subject: [PATCH] 'issues' -> 'issue', 'pull_request' -> 'merge_request' --- modules/git_webhooks/gitlab.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/git_webhooks/gitlab.py b/modules/git_webhooks/gitlab.py index 50e819dd..7e031bdf 100644 --- a/modules/git_webhooks/gitlab.py +++ b/modules/git_webhooks/gitlab.py @@ -77,9 +77,9 @@ class GitLab(object): def webhook(self, full_name, event, data, headers): if event == "push": return self.push(full_name, data) - elif event == "pull_request": + elif event == "merge_request": return self.pull_request(full_name, data) - elif event == "issues": + elif event == "issue": return self.issues(full_name, data) elif event == "note": return self.note(full_name, data)