Skip to content

Commit f69c16e

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

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
@@ -279,7 +279,7 @@ def request_create(self, user, repo, from_branch, onto_branch, title, descriptio
279279
def request_list(self, user, repo):
280280
repository = self.gh.repository(user, repo)
281281
for pull in repository.iter_pulls():
282-
yield ( str(pull.number), pull.title, pull.links['issue'] )
282+
yield ( str(pull.number), pull.title, pull.links['html'] )
283283

284284
def request_fetch(self, user, repo, request, pull=False):
285285
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)