perceval/backends/core/github.py
def __get_pull_commits(self, pr_number):
        """Get pull request commit hashes"""

        hashes = []
        group_pull_commits = self.client.pull_commits(pr_number)

        for raw_pull_commits in group_pull_commits:

            for commit in json.loads(raw_pull_commits):
                commit_hash = commit['sha']
                hashes.append(commit_hash)

        return hashes
def __get_pull_commits(self, pr_number):
        hashes = []
        group_pull_commits = self.client.pull_commits(pr_number)

        for raw_pull_commits in group_pull_commits:

            for commit in json.loads(raw_pull_commits):
                commit_hash = commit['sha']
                hashes.append(commit_hash)

        return hashes
def __get_pull_commits ( self , pr_number ) : hashes = [ ] group_pull_commits = self . client . pull_commits ( pr_number ) for raw_pull_commits in group_pull_commits : for commit in json . loads ( raw_pull_commits ) : commit_hash = commit [ 'sha' ] hashes . append ( commit_hash ) return hashes
Get pull request commit hashes
Get pull request commit hashes