From 5a095b078773529e15a1b8b41ad0dcf66d308f93 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 28 Oct 2019 14:21:54 +0000 Subject: [PATCH] support confidential notes on gitlab webhooks --- modules/git_webhooks/gitlab.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/modules/git_webhooks/gitlab.py b/modules/git_webhooks/gitlab.py index 5236111d..6f772d5a 100644 --- a/modules/git_webhooks/gitlab.py +++ b/modules/git_webhooks/gitlab.py @@ -12,9 +12,12 @@ EVENT_CATEGORIES = { ], "pr": [ "merge_request/open", "merge_request/close", "merge_request/reopen", - "merge_request/update", "merge_request/merge" + "merge_request/update", "merge_request/merge", "note+mergerequest", + "confidential_note+mergerequest" + ], + "pr-all": [ + "merge_request", "note+mergerequest", "confidential_note+mergerequest" ], - "pr-all": ["merge_request"], "issue-minimal": [ "issue/open", "issue/close", "issue/reopen", "confidential_issue/open", "confidential_issue/close", "confidential_issue/reopen" @@ -22,13 +25,11 @@ EVENT_CATEGORIES = { "issue": [ "issue/open", "issue/close", "issue/reopen", "issue/update", "confidential_issue/open", "confidential_issue/close", - "confidential_issue/reopen", "confidential_issue/update", + "confidential_issue/reopen", "confidential_issue/update", "note+issue", + "confidential_note+issue" ], "issue-all": [ - "issue", "issue_comment", "confidential_issue" - ], - "issue-comment-minimal": [ - "issue_comment/created", "issue_comment/deleted" + "issue", "confidential_issue", "note+issue", "confidential_note+issue" ], "repo": ["tag_push"] }