title: PyGithub - How to get a list of all commits for a particular branch?
body: <p>I need to check all commits made to a particular branch on github.</p>
  <p>I am aware of</p>
  <pre><code>repo.get_commits() 
  </code></pre>
  <p>but this returns commits for all branches of that repository I guess. I haven't found any branch attribute neither in <a href="https://pygithub.readthedocs.io/en/latest/github_objects/Commit.html#github.Commit.Commit" rel="noreferrer">Commit class</a>  nor in <a href="https://pygithub.readthedocs.io/en/latest/github_objects/GitCommit.html#github.GitCommit.GitCommit" rel="noreferrer">Gitcommit class</a>.</p>
  <p>Also there is not sth like .get_commits() in <a href="https://pygithub.readthedocs.io/en/latest/github_objects/Branch.html#github.Branch.Branch" rel="noreferrer">Branch class</a></p>
  <p>What is the proper way to solve this problem?</p>