incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [29/50] git commit: [#6535] ticket:424 Refactoring: use self.get_user_link everywhere
Date Tue, 24 Sep 2013 17:08:08 GMT
[#6535] ticket:424 Refactoring: use self.get_user_link everywhere


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/2ca21ae5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/2ca21ae5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/2ca21ae5

Branch: refs/heads/cj/6422
Commit: 2ca21ae5f50bc5214f823cb17c1126995c4cf7b8
Parents: 7861638
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Tue Sep 17 15:03:31 2013 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Thu Sep 19 14:46:51 2013 +0000

----------------------------------------------------------------------
 ForgeImporters/forgeimporters/github/tracker.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/2ca21ae5/ForgeImporters/forgeimporters/github/tracker.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/github/tracker.py b/ForgeImporters/forgeimporters/github/tracker.py
index 96e8be6..1b37e5b 100644
--- a/ForgeImporters/forgeimporters/github/tracker.py
+++ b/ForgeImporters/forgeimporters/github/tracker.py
@@ -151,8 +151,8 @@ class GitHubTrackerImporter(ToolImporter):
         for comment in extractor.iter_comments(issue):
             body, attachments = self._get_attachments(comment['body'])
             if comment['user']:
-                posted_by = u'*Originally posted by: [{0}](https://github.com/{0})*\n'.format(
-                    comment['user']['login'])
+                posted_by = u'*Originally posted by: {}*\n'.format(
+                    self.get_user_link(comment['user']['login']))
                 posted_by += body
                 body = posted_by
             p = ticket.discussion_thread.add_post(


Mime
View raw message