Use Python to interact with the GitHub API.
pip install PyGithub
Using the GraphQL API as the REST/Python API only goes back 90 days.
from github import Github
g = Github()
repo = g.get_repo("yanndebray/matlab-with-python-book")
commits = repo.get_commits()
print(f"Repo {repo.name} has {len(list(commits))} commits")
for commit in commits:
print(commit.commit.message)

