diff --git a/IntegrationTest.py b/IntegrationTest.py index 3d6aaf4b..cfa9b878 100644 --- a/IntegrationTest.py +++ b/IntegrationTest.py @@ -508,9 +508,8 @@ class IntegrationTest: # m.delete() # self.printList( "Milestones", r.get_milestones(), lambda m: m.title ) - # @todo custom url /issues instead of /user/issues - # def testIssuesForAuthenticatedUser( self ): - # self.printList( "Issues", self.g.get_user().get_issues(), lambda i: i.title ) + def testIssuesForAuthenticatedUser( self ): + self.printList( "Issues", self.g.get_user().get_issues(), lambda i: i.title ) # @todo custom url /user/keys instead of /users/jacquev6/keys # def testKeys( self ): diff --git a/JsonDescriptionOfGithubApiV3/description.000.human_readable.json b/JsonDescriptionOfGithubApiV3/description.000.human_readable.json index 5226b55f..21b38c49 100644 --- a/JsonDescriptionOfGithubApiV3/description.000.human_readable.json +++ b/JsonDescriptionOfGithubApiV3/description.000.human_readable.json @@ -68,7 +68,8 @@ "name": "issues", "singularName": "issue", "type": "Issue", - "getList": true + "getList": true, + "url": [ { "type": "constant", "value": "https://api.github.com/issues" } ] }, { "name": "keys", diff --git a/JsonDescriptionOfGithubApiV3/description.001.normalized.json b/JsonDescriptionOfGithubApiV3/description.001.normalized.json index ad8ec0c1..609311ae 100644 --- a/JsonDescriptionOfGithubApiV3/description.001.normalized.json +++ b/JsonDescriptionOfGithubApiV3/description.001.normalized.json @@ -459,15 +459,9 @@ "mandatoryParameters": [], "request": { "url": [ - { - "type": "attribute", - "value": [ - "url" - ] - }, { "type": "constant", - "value": "/issues" + "value": "https://api.github.com/issues" } ], "information": "data", diff --git a/github/GithubObjects/AuthenticatedUser.py b/github/GithubObjects/AuthenticatedUser.py index 18a69ff2..19bf81c2 100644 --- a/github/GithubObjects/AuthenticatedUser.py +++ b/github/GithubObjects/AuthenticatedUser.py @@ -371,7 +371,7 @@ class AuthenticatedUser( object ): def get_issues( self ): status, headers, data = self.__requester.request( "GET", - str( self.url ) + "/issues", + "https://api.github.com/issues", None, None )