Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request - list open pull requests #12

Open
bastelfreak opened this issue Mar 8, 2017 · 4 comments
Open

Feature request - list open pull requests #12

bastelfreak opened this issue Mar 8, 2017 · 4 comments

Comments

@bastelfreak
Copy link

Hi everybody,
thanks for the great work! Do you think it is possible to also track the amount of open pull requests?

@alexellis
Copy link
Contributor

alexellis commented Mar 25, 2017

@bastelfreak yes in effect. This should be possible via the /pulls API i.e. https://api.github.com/repos/alexellis/faas/pulls

The only issue is that the endpoint will be a list / iterative and could burn up a lot of API calls.

@Rucknar
Copy link
Contributor

Rucknar commented May 4, 2017

Pulls API - Very frustrating. It doesn't always seem to exist, but when it does it contains all the standard info. If it was reliable we could capture the data without hitting the rate limits. Open to thoughts on how best to achieve.

@smithamax
Copy link

Has anyone looked at using the graphql api for this?
Something like this could could work...

query { 
  organization(login: "some-org") {
    repositories(first:100) {
     nodes {
      name
      openPullRequests: pullRequests(states:OPEN) {
        totalCount
      }
      closedPullRequests: pullRequests(states:CLOSED) {
        totalCount
      }
      mergedPullRequests: pullRequests(states:MERGED) {
        totalCount
      }
    } 
    }
  }
}

@Rucknar
Copy link
Contributor

Rucknar commented Jul 5, 2017

Indeed, mentioned it just the other day on issue #22
I've not got time this month, open to a PR though if it's something you are familiar with!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants