I need to collect overview statistics from GitHub on our project

I need to pull information from our private GitHub repository regarding the number of reviews each of our staff members has completed over a given time frame.

I looked through the GitHub documentation but it didn't seem obvious to me, even if it's even possible to use their REST API.

I want to use data to provide information in a graph online automatically, so REST is preferred.

Does anyone know if this is possible?

Thanks, / J

+2


source to share


1 answer


Here is a link to the list of testimonials on the pull request endpoint . The call returns user data so you can count the volume of reviews and who completed them. Below is an example call:

curl -u <USER>:<API_KEY> https://api.github.com/repos/<owner>/<repo>/pulls/<number>/reviews



You can automate this further by creating a list of organizational repositories , then pulling out a list of pull requests in each repository. The JSON pull request payload will include id

that you need to generate the pull request view information.

+2


source







All Articles