Skip to content

Commit 8fc87b2

Browse files
committed
🚒 Changed URI of the listed pulled requests on Github
fixes #93 Signed-off-by: Guyzmo <[email protected]>
1 parent c818a0c commit 8fc87b2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

git_repo/services/ext/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def request_create(self, user, repo, from_branch, onto_branch, title, descriptio
281281
def request_list(self, user, repo):
282282
repository = self.gh.repository(user, repo)
283283
for pull in repository.iter_pulls():
284-
yield ( str(pull.number), pull.title, pull.links['issue'] )
284+
yield ( str(pull.number), pull.title, pull.links['html'] )
285285

286286
def request_fetch(self, user, repo, request, pull=False):
287287
if pull:

tests/integration/test_github.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ def test_30_request_list(self):
284284
namespace='guyzmo',
285285
repository='git-repo',
286286
rq_list_data=[
287-
('3', 'docs for fqdn > url', 'https://api.github.com/repos/guyzmo/git-repo/issues/3'),
288-
('2', 'prefer gitrepo.<target>.token > privatekey, docs', 'https://api.github.com/repos/guyzmo/git-repo/issues/2'),
287+
('3', 'docs for fqdn > url', 'https://github.com/guyzmo/git-repo/pull/3'),
288+
('2', 'prefer gitrepo.<target>.token > privatekey, docs', 'https://github.com/guyzmo/git-repo/pull/2'),
289289
])
290290

291291
def test_31_request_fetch(self):

0 commit comments

Comments
 (0)