allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject allura git commit: [#7801] ticket:691 Fix issues import from GitHub
Date Mon, 08 Dec 2014 18:23:50 GMT
Repository: allura
Updated Branches:
  refs/heads/master 142a867c9 -> 5407aa963


[#7801] ticket:691 Fix issues import from GitHub


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

Branch: refs/heads/master
Commit: 5407aa963c7b685c4864bb6c6c88fbe41b225d10
Parents: 142a867
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Mon Dec 8 13:50:49 2014 +0200
Committer: Igor Bondarenko <jetmind2@gmail.com>
Committed: Mon Dec 8 13:58:28 2014 +0200

----------------------------------------------------------------------
 ForgeImporters/forgeimporters/github/__init__.py             | 2 +-
 ForgeImporters/forgeimporters/tests/github/test_extractor.py | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/5407aa96/ForgeImporters/forgeimporters/github/__init__.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/github/__init__.py b/ForgeImporters/forgeimporters/github/__init__.py
index 51ba1f1..46a9706 100644
--- a/ForgeImporters/forgeimporters/github/__init__.py
+++ b/ForgeImporters/forgeimporters/github/__init__.py
@@ -61,7 +61,7 @@ class GitHubProjectExtractor(base.ProjectExtractor):
         'issues': 'https://api.github.com/repos/{project_name}/issues',
         'wiki_url': 'https://github.com/{project_name}.wiki',
     }
-    POSSIBLE_STATES = ('opened', 'closed')
+    POSSIBLE_STATES = ('open', 'closed')
     SUPPORTED_ISSUE_EVENTS = ('closed', 'reopened', 'assigned')
     NEXT_PAGE_URL_RE = re.compile(r'<([^>]*)>; rel="next"')
 

http://git-wip-us.apache.org/repos/asf/allura/blob/5407aa96/ForgeImporters/forgeimporters/tests/github/test_extractor.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/tests/github/test_extractor.py b/ForgeImporters/forgeimporters/tests/github/test_extractor.py
index 8b81f88..d91c25b 100644
--- a/ForgeImporters/forgeimporters/tests/github/test_extractor.py
+++ b/ForgeImporters/forgeimporters/tests/github/test_extractor.py
@@ -65,10 +65,10 @@ class TestGitHubProjectExtractor(TestCase):
             response = StringIO(json.dumps(self.PROJECT_INFO))
         elif url.endswith('/issues?state=closed'):
             response = StringIO(json.dumps(self.CLOSED_ISSUES_LIST))
-        elif url.endswith('/issues?state=opened'):
+        elif url.endswith('/issues?state=open'):
             response = StringIO(json.dumps(self.OPENED_ISSUES_LIST))
-            headers = {'Link': '</issues?state=opened&page=2>; rel="next"'}
-        elif url.endswith('/issues?state=opened&page=2'):
+            headers = {'Link': '</issues?state=open&page=2>; rel="next"'}
+        elif url.endswith('/issues?state=open&page=2'):
             response = StringIO(json.dumps(self.OPENED_ISSUES_LIST_PAGE2))
         elif url.endswith('/comments'):
             response = StringIO(json.dumps(self.ISSUE_COMMENTS))


Mime
View raw message