Skip to content

Commit

Permalink
🚒 Fixes PR request ls with BB
Browse files Browse the repository at this point in the history
fixes #193
  • Loading branch information
guyzmo committed Aug 27, 2019
1 parent 5f6eeea commit b81a391
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions git_repo/services/ext/bitbucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,11 @@ def request_list(self, user, repo):
r.links['html']['href']
) for r in self.bb.repositoryPullRequestsInState(
owner=user,
repository_name=repo,
state='open'
repository_name=repo
) if not isinstance(r, dict) # if no PR is empty, result is a dict
)
yield "{}\t{:<60}\t{}"
yield 'id', 'title', 'URL'
for pull in sorted(requests):
try:
yield pull
Expand Down

0 comments on commit b81a391

Please sign in to comment.