Commit 9ddbfc1d authored by Abhijith PA's avatar Abhijith PA
Browse files

Adding links for the issues and uncommenting balu's commented lines

parent 7abab69d
......@@ -84,6 +84,7 @@ class MUCBot(sleekxmpp.ClientXMPP):
issue_id = data['object_attributes']['iid']
issue_title = data['object_attributes']['title']
issue_user = data['user']['name']
issue_url = data['object_attributes']['url']
action = data['object_attributes']['action']
state = False
if action == 'open':
......@@ -96,13 +97,14 @@ class MUCBot(sleekxmpp.ClientXMPP):
# If GitLab makes action == update only for issue edits, we can
# use that
# elif action == 'update':
# state = 'updated'
elif action == 'update':
state = 'updated'
if state:
msg = "Issue #%d '%s' - %s by %s" % (issue_id,
msg = "Issue #%d '%s' - %s by %s - " % (issue_id,
issue_title,
state,
issue_user
issue_user,
issue_url
)
self.send_message(mto=self.room, mbody=msg, mtype='groupchat')
return "OK"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment