Skip to content
Browse files
support auth'ed access
  • Loading branch information
Humbedooh committed Apr 5, 2022
1 parent 66d68d3 commit 474388b7f83ccec0d5a75001030718f94ff7afe5
Showing 1 changed file with 4 additions and 1 deletion.
@@ -227,8 +227,11 @@ def handle_payload(self, raw):
self.notify_jira(jopts, pr_id, title, jira_text, link)

def listen(self):
auth = None
if 'pubsub_user' in self.config:
auth = (self.config['pubsub_user'], self.config['pubsub_pass'])
listener = asfpy.pubsub.Listener(self.config["pubsub_url"])
listener.attach(self.handle_payload, raw=True)
listener.attach(self.handle_payload, raw=True, auth=auth)

def jira_update_ticket(self, ticket, txt, worklog=False):
""" Post JIRA comment or worklog entry """

0 comments on commit 474388b

Please sign in to comment.