aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2016-02-08 00:28:43 +0200
committerkongr45gpen <electrovesta@gmail.com>2016-02-08 00:28:43 +0200
commite56a487b2a6672284a8f18a816782b5fdebf3b08 (patch)
treec5beb45dca728921762e02c68c2140c2379e02d1
parent8f12dc15155e6de248a0ab73058f64e3f8f6a1e6 (diff)
downloadsupybot_github-e56a487b2a6672284a8f18a816782b5fdebf3b08.tar.gz
supybot_github-e56a487b2a6672284a8f18a816782b5fdebf3b08.tar.bz2
supybot_github-e56a487b2a6672284a8f18a816782b5fdebf3b08.zip
Use the HTML URL when displaying issues
-rw-r--r--local/handler/IssueHandler.py2
-rw-r--r--local/theme/DefaultTheme.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/local/handler/IssueHandler.py b/local/handler/IssueHandler.py
index 122e519..bd133b9 100644
--- a/local/handler/IssueHandler.py
+++ b/local/handler/IssueHandler.py
@@ -24,7 +24,7 @@ def handle(data, theme):
issueTitle = data['issue']['title'],
creator = data['issue']['user']['login'],
milestone = milestone,
- url = getShortURL(data['issue']['url']),
+ url = getShortURL(data['issue']['html_url']),
assignee = assignee,
labelName = labelName,
labelColor = labelColor
diff --git a/local/theme/DefaultTheme.py b/local/theme/DefaultTheme.py
index e23490a..a0e797c 100644
--- a/local/theme/DefaultTheme.py
+++ b/local/theme/DefaultTheme.py
@@ -88,7 +88,7 @@ class DefaultTheme(Theme):
elif action == 'labeled' or action == 'unlabeled':
extra = " as %s" % ircutils.mircColor(labelName, hexToMirc(labelColor))
- self.msgs.append( "%s: %s %s issue #%s \"%s\"%s%s %s %s" % (
+ self.msgs.append( "%s: %s %s issue #%s \"%s\"%s%s %s%s" % (
self.repo(),
formattedActor,
colorAction(action),

© 2014-2024 Faster IT GmbH | imprint | privacy policy