コード例 #1
0
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
コード例 #2
0
 def setUp(self):
     self.cs = Commits(user='******', repo='re_oct')