allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [22/41] git commit: [#6535] ticket:423 fixed user link
Date Thu, 19 Sep 2013 16:21:54 GMT
[#6535] ticket:423 fixed user link


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

Branch: refs/heads/db/5822
Commit: 51b90429bd3283b0049f9a9ad4029549a5a73ea1
Parents: 30da04e
Author: coldmind <sokandpal@yandex.ru>
Authored: Wed Sep 11 14:07:23 2013 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Thu Sep 19 14:46:50 2013 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/51b90429/ForgeImporters/forgeimporters/github/tracker.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/github/tracker.py b/ForgeImporters/forgeimporters/github/tracker.py
index fea18ed..01a08e4 100644
--- a/ForgeImporters/forgeimporters/github/tracker.py
+++ b/ForgeImporters/forgeimporters/github/tracker.py
@@ -30,9 +30,9 @@ class GitHubTrackerImporter(ToolImporter):
     def import_tool(self, project, user, project_name, mount_point=None,
             mount_label=None, **kw):
         app = project.install_app('tickets', mount_point, mount_label,
-                EnableVoting=True,
-                open_status_names='New Accepted Started',
-                closed_status_names='Fixed Verified Invalid Duplicate WontFix Done',
+                EnableVoting=False,
+                open_status_names='Open',
+                closed_status_names='Closed',
             )
         ThreadLocalORMSession.flush_all()
         extractor = GitHubProjectExtractor(
@@ -88,7 +88,10 @@ class GitHubTrackerImporter(ToolImporter):
         for comment in extractor.iter_comments(issue):
             body, attachments = self._get_attachments(comment['body'])
             if comment['user']:
-                body += u'\n*Originally posted by: {}*'.format(comment['user']['login'])
+                posted_by = u'*Originally posted by: [{0}](https://github.com/{0})*\n'.format(
+                    comment['user']['login'])
+                posted_by += body
+                body = posted_by
             p = ticket.discussion_thread.add_post(
                     text = body,
                     ignore_security = True,


Mime
View raw message