Questions tagged [github-graphql]

Use for questions about the v4 GraphQL API of the GitHub software development platform.

Links:

148 questions
2
votes
0 answers

GitHub GraphQL search issues by repository

I would like to execute a query for issues in a specific repository using GitHub GraphQL. Here is what I have: query MyQuery { search(query: "repo:spring-projects/spring-boot in:title fonts", type: ISSUE, first: 3) { edges { node { …
wujek
  • 10,112
  • 12
  • 52
  • 88
2
votes
1 answer

How to compare two branches in github with GraphQL?

Can we compare two branches with the Github GraphQL? From their v3 rest API, you can do: /repos/:owner/:repo/compare/:base...:head (docs: https://developer.github.com/v3/repos/commits/#compare-two-commits) and this works with SHA's, branches, tags,…
tsamridh86
  • 1,480
  • 11
  • 23
2
votes
0 answers

How to get raw image URL or content from a GitHub repo file using GraphQL

I am trying to automate some stuff that will require to get the current images from a GitHub private repo. Ideally, I'd iterate over the root directory and, for all images, get the URL for the RAW file. For example: For this image:…
luigibertaco
  • 1,112
  • 5
  • 21
2
votes
0 answers

Github Graphql query: Reaching null pointer after 1000 outputs (or 10 requests * 100 items per request)

I'm the lead student-researcher on a team trying to analyze and mine GitHub repositories. We're trying to get (the repo_owner and repo_name) for every project hosted on Github that meets the following criteria: query MyQuery { search(query:…
AJM10565
  • 21
  • 1
2
votes
1 answer

What is GraphQL query to determine if GitHub package exists within an Organization?

How do I query GitHub Packages to determine whether a package already exists? I want to prevent CI/CD from attempting to publish a Maven package if that package already exists. I'm trying a query that looks like: curl -X POST -H "Authorization:…
John
  • 10,837
  • 17
  • 78
  • 141
2
votes
0 answers

How to extract open pull request information from github-graphql response

I am writing a script that will query the github graphql API for open pull requests, and post the count and summary information about them to a slack channel. I am able to query the github-graphql API and return the results. I am able to iterate…
Nick M
  • 21
  • 2
2
votes
0 answers

Mutation to create a GIST

I want to create a gist using GitHub's GraphQL API. Although, I couldn't find the mutation to use. I tried searching for a mutation in the docs but there was none matching addGist. Is there still a way to make a POST request to create a gist using…
AMAN SHARMA
  • 331
  • 3
  • 10
2
votes
1 answer

Github GraphQl - How to get a list of commits between tags

With Github GraphQL I want to answer the question: What commits have been merged into master between releases/tags? The result should be similar to the results for this question Get commit list between tags in Git if I were to do it on the command…
josh803316
  • 303
  • 5
  • 10
2
votes
1 answer

graphql Validation error of type FieldsConflict coming when alias is not used

I am getting the error "Validation error of type FieldsConflict" when i am not using aliases in my request. kindly confirm if this is expected or if there is a workaround { person(search: [{firstname: "DAN", lastname: "WATLER", country:…
2
votes
1 answer

GitHub GraphQL cursor Pagination on first request

Hi I am using Apollo android to get a list of repositories with a keyword from the Github GraphQl I have to add cursor based pagination as well. This is the .graphql file query Search($query: String!,$afterCursor: String!){ search(query:$query,…
Gowsik
  • 1,096
  • 1
  • 12
  • 25
2
votes
1 answer

GraphQL with ASP.NET framework (and not .NET Core)

I'm relatively new to GraphQL and want to implement GraphQL to my existing ASP.NET Framework (with Entity Framework 4) application which has an MSSQL Server as the backend. While browsing for GraphQL libraries and for their demos/examples I found…
Mr.Human
  • 547
  • 2
  • 12
  • 30
2
votes
1 answer

Making Github GraphQL requests via curl

The following GraphQL query runs perfectly fine in Github GraphQL Explorer: $ cat GraphQL_query.graphql query { __schema { types { name kind description fields { name } } } } however, when I send it…
xpt
  • 20,363
  • 37
  • 127
  • 216
2
votes
1 answer

Get secret gists using Github GraphQL

As title, I'm using Github GraphQL explorer to fetch list of my gists. query { viewer { gists(first:5, privacy:ALL) { edges { node { id description name …
Meng Lee
  • 123
  • 7
2
votes
1 answer

Github API pagination limit

So, I have created a query to retrieve some data from Github using its GraphQL API (tested with REST API; same problem). The query is partially shown below (showing just what matters): query listRepos($queryString: String!, $numberOfRepos: Int!,…
FTM
  • 1,887
  • 17
  • 34
2
votes
1 answer

Bad request while trying to access Github's v4 API with graphql.js

I am trying to retrieve some data from Github's GraphQL API using graphql.js library. var graph = graphql("https://api.github.com/graphql", { method: "POST", headers: { "Authorization": "Bearer ", "Content-Type":…
FTM
  • 1,887
  • 17
  • 34