From 963d0d2de7b34b6ba2848b9891ce488664292332 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 18 Oct 2019 11:58:10 +0100 Subject: [PATCH] 'opened' -> 'open' etc for gitlab event categories --- modules/git_webhooks/gitlab.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/modules/git_webhooks/gitlab.py b/modules/git_webhooks/gitlab.py index d1bae40e..933f147f 100644 --- a/modules/git_webhooks/gitlab.py +++ b/modules/git_webhooks/gitlab.py @@ -7,20 +7,18 @@ EVENT_CATEGORIES = { ], "code": ["push"], "pr-minimal": [ - "merge_request/opened", "merge_request/closed", "merge_request/reopened" + "merge_request/open", "merge_request/close", "merge_request/reopen" ], "pr": [ - "merge_request/opened", "merge_request/closed", "merge_request/reopened", - "merge_request/edited", "merge_request/assigned", - "merge_request/unassigned" + "merge_request/open", "merge_request/close", "merge_request/reopen", + "merge_request/update", ], "pr-all": ["merge_request"], "issue-minimal": [ - "issue/opened", "issue/closed", "issue/reopened", "issue/deleted" + "issue/open", "issue/close", "issue/reopen" ], - "issues": [ - "issue/opened", "issue/closed", "issue/reopened", "issue/deleted", - "issue/edited", "issue/assigned", "issue/unassigned", "issue_comment" + "issue": [ + "issue/open", "issue/close", "issue/reopen", "issue/update", ], "issue-all": [ "issue", "issue_comment"