Update

Over time and quite predictably, schema requests in a single thread have become hard to manage. Additionally, more complex discussions about schema requests or existing schema were often lost or difficult to follow in the larger thread.

As a result, we’re changing how we’d like to receive this type of feedback from the community to make sure we don’t miss anything. Going forward, just create a new topic for your schema request and tag your new topic with schema-request for increased visibility.

As we continue to build our GraphQL API, we’re going to be adding more and more objects to the schema. If you have some objects that you’d like to be added, please add your request to this thread.

I have some code that gets all our repositories, then reaches into each repository to grab all the branches. I use this branch data to generate a list of deployable applications, which have a predictable naming convention for release branches. This takes dozens of REST calls.

I think a query could look something like this, with the branches connection returning Refs:

Hi, I’d really like to be able to access the labels of a pull request. I’m building a metrics dashboard for my team’s master repo and I’d like to be able to graph the number of open PRs per team. We add the team name as a label on each PR to track who’s working on what.

It seems like so far PRs and Issues are not linked in the GraphQL API – the only way I can think of doing it so far is to walk backwards through the Events of a PR and figure out the most recent LabeledEvents but that seems unnecessarily complicated!

As a follow up to this comment. We might not need write access and mutators directly in graphql. I think having only read access would be enough. The expensive operations are always around retrieving content, specially in big directories.

I’ve been trying the GitHub GraphQL API, which is great. However, I’m trying to get the languages used by each repository for an organization and I’m having trouble getting the organization (could only do it via search) and getting the languages from the Repository type (which appears not to be possible).

I would like to be able to query for information about team members. Specifically, I would like to be able to find all open PRs for a given team (just want to emphasize - for a team, not for an Org). These PRs may be across multiple repos. I would love to have this capability for GitHub proper of course, though really want it for GitHub Enterprise.