def METHOD_NAME(self, repo, end_sha):
    # return api request that fetches last ~30 commits
    # see https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository
    # using end_sha as parameter
    return self.get(f"/repos/{repo}/commits", params={"sha": end_sha})