I am trying to get from GitHub using graphQL multiple organizations & repositories data. The code i wrote below get only 1 organization & repository.
I thought using variables of two Array [String!] one for Organizations & the second for…
How to use more than one objects when querying Github GraphQL?
The following will break if the 2nd object is uncommented:
query {
repository(owner:"rails", name:"rails") {
object(expression:"master") {
... on Commit {
history {
…
How to search for Github Repositories using GraphQL, and get its total commits count as well in return?
It looks strange to me that all fields available describing Repositories contains total count of commit comments but not total count of commits.…
I am trying to compare two repositories (one is a fork of another), the official way, using compare and going back to 2017-02-11:
https://github.com/bitcoin/bitcoin/compare/master@{2017-02-11}...UnitedBitcoin:master@{2017-02-11}
Which returns:
There…
I can query the first pull request like this:
query {
repository(owner: "test_owner", name: "test_name") {
pullRequests(first: 1) {
nodes {
id
number
title
}
}
}
}
But how do I query a certain pull…
How do I query the GitHub API v4 for the contents of a certain directory of a repository at a certain tag?
This is the best I've come up with so far:
query {
repository(owner:"example", name:"example") {
refs(refPrefix: "tags") {
}
}
}
I'm trying to make a client-side request to the GitHub graphql API using Apollo Client, but there's a 401 authentication issue I haven't been able to resolve.
I've swapped out the query with one to a different API that doesn't require authentication…
Much has been written about the benefits of the GitHub GraphQL API. And this is a really great technology. The only thing I can't figure out is in what situations is it still better to use the good old REST API v3?
What is the difference between these two queries in GitHub GraphQL?
query {
user(login: "desai10") {
contributionsCollection {
totalPullRequestContributions
}
}
}
and
query{
user(login: "desai10") {
pullRequests {
…
Is it possible to compare with the Github Graph? Via their rest API, you can do something like:
/repos/:owner/:repo/compare/:base...:head (docs: https://developer.github.com/v3/repos/commits/#compare-two-commits)
This works with SHA's, branches,…
I have been trying to connect to GitHub's GraphQL from a JavaScript project running locally but the connection fails.
I using a personal_access_token created on GitHub, the token is correct.
Strangely I have tried testing the token using a curl…
I am trying to programmatically download a zip file of a repository which is already checked out to a specific branch.
For that I need to obtain the zipballUrl of the head of the branch I specify through github graphQL API.
This answer specifies…
I am trying to fetch all my repositories that contain topic "portfolio" using Github GraphQL API.
For now, I found only how to fetch all repos on github with a specific topic, like so :
{
search(type: REPOSITORY, query: "topic: portfolio", last:…
Goal
I want to use the GraphQL API to reply to a pull request review comment.
It is possible if the status of the review is PENDING, but when the status of the review is SUBMITTED, it is not possible.
When I try it over the UI or the API V3 (REST),…
I'm struggling with the github graphql interface to get the data that I need. I want to get a list of asset urls for both tags and releases. It seems that some repos produce my desired result while others produce nothing.
query {
…