def get_commits_list(repo): """ Takes a repo and returns the commit list in 'master' branch """ commits_list = [] commits_list = Commits(user=organization, repo=repo.name).list(sha='master', path=None).all() return commits_list
def setUp(self): self.cs = Commits(user='******', repo='re_oct')