List all pull requests. :type limit: int :param limit: The number of items to display. :type pager: bool :param pager: Determines whether to show the output in a pager, if available.
(self, limit=1000, pager=False)
| 558 | |
| 559 | @authenticate |
| 560 | def pull_requests(self, limit=1000, pager=False): |
| 561 | """List all pull requests. |
| 562 | |
| 563 | :type limit: int |
| 564 | :param limit: The number of items to display. |
| 565 | |
| 566 | :type pager: bool |
| 567 | :param pager: Determines whether to show the output in a pager, |
| 568 | if available. |
| 569 | """ |
| 570 | issues_list = [] |
| 571 | repositories = self.config.api.repositories() |
| 572 | for repository in repositories: |
| 573 | repo_pulls = repository.pull_requests() |
| 574 | for repo_pull in repo_pulls: |
| 575 | url = self.formatter.format_issues_url_from_issue(repo_pull) |
| 576 | user, repo, issues, number = url.split('/') |
| 577 | repo_pull = self.config.api.pull_request(user, repo, number) |
| 578 | issues_list.append(repo_pull) |
| 579 | self.issues(issues_list, limit, pager) |
| 580 | |
| 581 | @authenticate |
| 582 | def rate_limit(self): |
nothing calls this directly
no test coverage detected