scripts/github_stats.py
def get_pull_reqs(self, repo):
        """
        Retrieves the number of pull requests on a repo in the organization.
        """
        pull_reqs_open = 0
        pull_reqs_closed = 0
        for pull_request in repo.iter_pulls(state='all'):
            self.pull_requests_json[repo.name].append(pull_request.to_json())
            if pull_request.closed_at is not None:
                pull_reqs_closed += 1
            else:
                pull_reqs_open += 1
        return pull_reqs_open, pull_reqs_closed
def get_pull_reqs(self, repo):
        pull_reqs_open = 0
        pull_reqs_closed = 0
        for pull_request in repo.iter_pulls(state='all'):
            self.pull_requests_json[repo.name].append(pull_request.to_json())
            if pull_request.closed_at is not None:
                pull_reqs_closed += 1
            else:
                pull_reqs_open += 1
        return pull_reqs_open, pull_reqs_closed
def get_pull_reqs ( self , repo ) : pull_reqs_open = 0 pull_reqs_closed = 0 for pull_request in repo . iter_pulls ( state = 'all' ) : self . pull_requests_json [ repo . name ] . append ( pull_request . to_json ( ) ) if pull_request . closed_at is not None : pull_reqs_closed += 1 else : pull_reqs_open += 1 return pull_reqs_open , pull_reqs_closed
Retrieves the number of pull requests on a repo in the organization.
Retrieves the number of pull requests on a repo in the organization .