On Mon, Aug 24, 2015 at 1:14 PM, DBS <davanand.bah...@gmail.com> wrote: > Hello, > > I'm trying to retrieve the number of commits and changed files on all pull > requests submitted to a branch. > > The call to get all the pull requests is GET /repos/:owner/:repo/pulls, but > it does not return "commits" or "changed_files". > > The call that returns number of commits and changed files is GET > /repos/:owner/:repo/pulls/:number. > > Any guidance on how I can modify the call below to include commits and > changed files on all pull requests? > > #!/usr/bin/env python > import json > import requests <snip>
Have you considered using a GitHub API Python library such as github3.py (https://github.com/sigmavirus24/github3.py ) rather than reinventing the wheel? Cheers, Chris -- http://chrisrebert.com -- https://mail.python.org/mailman/listinfo/python-list