Skip to content
Permalink
Browse files
simplify logic, print target
  • Loading branch information
Humbedooh committed Apr 4, 2022
1 parent 8d25985 commit e32fee6393f53af4557e4a2457551862edc58dc3
Showing 1 changed file with 4 additions and 1 deletion.
@@ -119,7 +119,9 @@ def get_recipient(self, repository, itype, action="comment"):

if scheme:
if itype not in ["commit", "jira"]:
it = "issues" if itype == "issue" else "pullrequests"
it = "issues"
if itype != "issues":
it = "pullrequests"
if action in ["comment", "diffcomment", "edited", "deleted", "created"]:
if ("%s_comment" % it) in scheme:
return scheme["%s_comment" % it]
@@ -183,6 +185,7 @@ def handle_payload(self, raw):
self.diffcomments[uid].add(filename, diff, text)

ml = self.get_recipient(repository, payload.get("type"), action)
print("notifying", ml)
ml_list, ml_domain = ml.split("@", 1)
if real_action in self.templates:
try:

0 comments on commit e32fee6

Please sign in to comment.