'issues' -> 'issue', 'pull_request' -> 'merge_request'

This commit is contained in:
jesopo 2019-10-15 16:14:15 +01:00
parent 2f94e7546f
commit f0a9f00b57

View file

@ -77,9 +77,9 @@ class GitLab(object):
def webhook(self, full_name, event, data, headers): def webhook(self, full_name, event, data, headers):
if event == "push": if event == "push":
return self.push(full_name, data) return self.push(full_name, data)
elif event == "pull_request": elif event == "merge_request":
return self.pull_request(full_name, data) return self.pull_request(full_name, data)
elif event == "issues": elif event == "issue":
return self.issues(full_name, data) return self.issues(full_name, data)
elif event == "note": elif event == "note":
return self.note(full_name, data) return self.note(full_name, data)