I am trying to get the number of respositories of a few users using GitHub’s v4 API. In their explorer I found that I can query user(login: String!) however, that is only one users repositories count that I can see. Is it possible to loop though a…
Given a list of usernames and the following query to GITHUB API:-
query.gql:
query USER_QUERY($username:String!){
user(login: $username){
name
repositories(isFork:false){
totalCount
…
I am performing code review on one of the source codes.
While going through a JS file (graphql.js) I found a value "@relayhash" along with some hash value as below:
@relayHash 00950038252b25a368700738a31fled7
I am not sure what this relay hash value…
I have many repositories and some of them contain a branch that has the same name. I want to be able to fetch all the repositories that contain a specific branch name. This is what I have so far but I can't seem to figure out how to add the…
The query
curl -H "Accept: application/vnd.github.cloak-preview" "https://api.github.com/search/commits?q=java"
returns a list of commits for Java language. How can I get a number of committed lines for every item?
I'm trying to build a query with the GitHub API v4 (GraphQL) to get the number of contributors.
At the moment I have something of the likes of
query ($owner: String!, $name: String!) {
repository(owner: $owner, name: $name) {
…
Take the following Github URL: https://github.com/google
How can I determine whether google is a user or an organization?
I need to know to this for querying Github's graphql API in the correct way.
I understand that GitHub's GraphQL API has a rate limit, which requires you to use slicing with first, last, before, after, etc. However, what if I just want a count of a particular field? For example, I don't want to get all of a user's followers,…
When I run the query:
{
"query": "{user(login: \"furknyavuz\") {repositories(first: 50, isPrivate: false) {nodes {name url}}}}"
}
I getting the following error:
{
"data": null,
"errors": [
{
"message": "Field 'repositories' doesn't…
Is there a way to query reactions filtering on issue number and user?
{
repository(owner: "w3c", name: "webcomponents") {
issue(number: 688) {
title
reactions(last: 100) { <--- I want to filter on user here
edges {
…
I'm looking for a way to use the GitHub GraphQL to read repository contents (paths) and then provide a second query to grab the contents of the full path. I started heading down this path for the second query, and it's failing. The former is the…
I am trying to fetch the team name of the users who have approved a pull request using the GraphQL API. I am looking forward to perform this operation in a single query. I am able to get the list of reviewers who have approved the request but the…