MCPcopy
hub / github.com/donnemartin/gitsome / pull_requests

Method pull_requests

gitsome/github.py:560–579  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 6

issuesMethod · 0.95
repositoriesMethod · 0.45
splitMethod · 0.45
pull_requestMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected