Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
57 views

I have been trying to get a list of commits that were pushed to my repo using the --force push command. I am doing this to identify which commits have potentially changed the history of the branch. I ...
MoSaad's user avatar
  • 1
0 votes
1 answer
230 views

I am the admin of my github organization. I want to get organization member emails from their username. I have the following gh cli command that will give me all members, but I want a specific member. ...
Rosey's user avatar
  • 871
0 votes
0 answers
81 views

I am trying to call the GitHub GraphQL API using Clerk's GitHub authentication on Next.js. After the user logged in via GitHub (which works flawlessly), the API call to the GitHub GraphQL API is made. ...
upper-productions's user avatar
0 votes
1 answer
49 views

I am trying to enable the below in the branch protection. query curl -X POST -H "Authorization: Bearer <PAT>" -H "Content-Type: application/json" -d '{ "query&...
Uday Kiran's user avatar
1 vote
1 answer
410 views

I'm trying to write a GitHub workflow that uses a github-script in which a GraphQL query determines if a user is part of an organization's team. Using the GitHub GraphQL Explorer I've created this ...
Konrad Kleine's user avatar
0 votes
1 answer
384 views

I'm using GitHub's GraphQL API to retrieve the directories and files within a repository, but I only need some specific subsets. The repository I'm working with has a structure like: - / #root - /....
STW's user avatar
  • 46.8k
1 vote
1 answer
706 views

I'm using ProjectsV2 in Github, and since we don't have some pretty basic automations, I'm trying to write my own. I need to get a list of all my custom fields in the project, so I can then use their ...
Daniel's user avatar
  • 830
1 vote
0 answers
186 views

is there a possibility to query GH Advanced security secret scanning results through the GraphQL API? I can’t find any detail in the docs. BR
Gerrit's user avatar
  • 2,707
3 votes
1 answer
3k views

I am new to github graphQL API and I have been scrambling for a solution to the following problem, using github Entreprise Cloud: I have a repo "myRepo" containing an issue "myIssue&...
sepollig's user avatar
2 votes
0 answers
334 views

Working on GitHub Enterprise Server 3.8: My user is no "site-admin", but on the GitHub Web-UI I see on a users profile if the user was suspended: I also see that information, when I do a ...
Markus Mitterauer's user avatar
1 vote
0 answers
375 views

I'm working on a GitHub Action triggered on the comment of a certain discussion (say org/repo/discussions/6#discussioncomment-7349183) being created or edited. I'd like the action to reply the comment ...
XuanInsr's user avatar
  • 336
0 votes
0 answers
211 views

GitHub let's me create tasks lists in the issue specification like so: - [ ] #1 - [ ] https://github.com/desktop/desktop/pull/1 which will create a special relationship called "Tracked In" ...
surchs's user avatar
  • 473
1 vote
0 answers
132 views

I'm attempting to use the GitHub GraphQL API to query filtered items in ProjectV2 based on their state. Here's what I have so far, but I'd like to filter items in Issues or Pull Requests with a state ...
Minh Nguyen's user avatar
0 votes
0 answers
319 views

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 ...
harry1102's user avatar
  • 111
1 vote
0 answers
118 views

GraphQL Query I used: mutation CreateGitProfileRepo($name: String!, $description: String!, $homepageUrl: URI!) { createRepository(input: {name: $name, visibility: PUBLIC, description: $description,...
Ritik's user avatar
  • 132
0 votes
2 answers
417 views

I tried below code to create organization using my github account getting error mutation { createOrganization(input: { login: "besttestzzzz", admin: true }) { organization { id login } } } { ...
Bhaskar g's user avatar
2 votes
0 answers
262 views

In a github discussion I am pinging folks who have pending PRs to review and to make the discussion less noisy I want to hide all previous comments before posting new comments. Probably this hide ...
Sujay's user avatar
  • 404
4 votes
1 answer
3k views

I'm trying to build a simple Android app to list random repositories and be able to add a star to certain repos. Every time when I try to do a mutation to add a star to a project using Altair I get ...
vr4u's user avatar
  • 61
1 vote
3 answers
3k views

I'm trying to look up the GitHub username for a few hundred users based on their email (which I pulled from the git log). Unfortunately I can't figure out how to do this without making a single call ...
Daniel Porteous's user avatar
0 votes
2 answers
227 views

class GithubGraphqlService URL = "https://api.github.com/graphql".freeze attr_reader :access_token def initialize(access_token) @access_token = access_token end ...
Anmol Shrivastav's user avatar
2 votes
1 answer
207 views

I am exploring Github's graphQL API, and I am new to this. In the below use case, I am trying to fetch the repos which are of Java and their owners are from the location "London". I have ...
Iqbal honnur's user avatar
0 votes
1 answer
110 views

I'm trying to get the last commit with typesaftey but can't get past the history property because it can be an empty object, {}, null, undefined, or the actual object I want, Commit. My GitHub GraphQL ...
DFBerry's user avatar
  • 2,028
1 vote
1 answer
41 views

I want to determine the size of the file "foo" in the master branch of johndoe's "boo" repository. Any suggestion? I am using https://docs.github.com/en/graphql/overview/explorer ...
Flavio Antonio's user avatar
1 vote
0 answers
243 views

I stumbled on GitHub GraphQL today and at first glance, it seemed to me I could do more with it than I already do with their regular RESTful API. I created some Adapters in my existing application and ...
user5613506's user avatar
0 votes
2 answers
4k views

I am trying to sort reservesUSD of nested object dailyPoolSnapshots In descending order by timestamp and return it's first value (in other words, return the latest entry). I know almost nothing of ...
EndOfTheGlory's user avatar
2 votes
2 answers
3k views

I've been trying to retrieve all GitHub issues of a specific project using their GraphQL API. The problem that i have is that i need to specify in the items a first or last param it doesn't work. ...
PixelTheory's user avatar
1 vote
2 answers
469 views

I am scraping some data from GitHub. The RESTful URL to this particular PR shows that it has a merge_commit_sha value: https://api.github.com/repos/ansible/ansible/pulls/15088 However, when I try to ...
Parvez M Robin's user avatar
2 votes
0 answers
346 views

I have a GitHub app that is authorized to access data from my workplace's private repository. I use the GitHub GraphQL API to search for each user's recent pull requests. The pull request query works ...
marie2048's user avatar
2 votes
1 answer
1k views

How do I get the order of items in a board view column from the API? I found the sortBy object in the ProjectV2 views, but I'm struggling querying the items ordered by fieldValue (position?). Would ...
Adam Kliment's user avatar
3 votes
1 answer
1k views

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 ...
tbguest's user avatar
  • 51
1 vote
0 answers
484 views

I’m writing a workflow to add issues/PRs as project items to the projects beta. I was previously using a personal access token for the GraphQL API call, which worked successfully. However, using a ...
Nikhil's user avatar
  • 23
2 votes
1 answer
1k views

With Github's GraphQL API I recently found "Github API: Getting topics of a Github repository" that mentions you can get a count of topics: { repository(owner: "twbs", name: &...
GʀᴜᴍᴘʏCᴀᴛ's user avatar
0 votes
1 answer
234 views

The GitHub GraphQL API documentation for the Repository object shows an isLocked field, which it describes with, "Indicates if the repository has been locked or not." I can't find a ...
abbo2t's user avatar
  • 226
2 votes
1 answer
1k views

I am just wondering, did anyone manage to authenticate into the Github GraphQL API with using a Github App and how? The purpose of this is to write a script that pulls information from Github with the ...
Petra Vukmirovic's user avatar
1 vote
1 answer
391 views

Looking at the set up for go-vcr // Start our recorder r, err := recorder.New("fixtures/etcd") if err != nil { log.Fatal(err) } defer r.Stop() // Make sure recorder ...
mcbain83's user avatar
  • 512
1 vote
1 answer
314 views

According to the documentation (https://docs.github.com/en/graphql/reference/objects#commit), the parents function returns "the parents of a commit." Are these sorted the same way as in git? ...
Tim Seah's user avatar
0 votes
1 answer
321 views

at my company we want to make use of the relatively new API feature "Automerge" (not through a UI but through an API call), However we can't seem to find any documentation of a webhook (or ...
WOOB's user avatar
  • 1
1 vote
1 answer
920 views

Once a pull request is approved by any member of a requested team, it disappears from the GitHub dashboard, even if it lingers in an open state. How can we query using the Github v4 GraphQL the open ...
SteveCoffman's user avatar
  • 1,093
0 votes
2 answers
401 views

I want to fetch all the repos, that I'm owner/contributor with specific topic. I tried below this request. This returned, all my repos that I'm owner/contributor with all the topics. { viewer { ...
mnvbrtn's user avatar
  • 568
6 votes
4 answers
6k views

I've gone through Github Rest API v3 and Github GraphQL API v4 but I'm unable to find a resource/endpoint to check if dependabot is enabled via the API? I've gone through loads of documentation but ...
Karan Tikku's user avatar
2 votes
1 answer
2k views

I am really struggling to get anything sensible out of the GitHub GraphQL api... I want to get a list of repos and the permission levels for a team. So far I have Q= """query { ...
apr_1985's user avatar
  • 1,982
0 votes
4 answers
2k views

I've successfully implemented automatic file creation/update via Github V3 Rest API, however the only downside is that for each file I have a commit. There is a possibility to do the same for multiple ...
elect's user avatar
  • 7,196
0 votes
1 answer
2k views

I'am trying this get github issues by their ids through graphql endpoints And tried this code { repository(name: "reponame", owner: "ownername") { issue1: issue(number: 2) { ...
Bhaskar g's user avatar
1 vote
1 answer
687 views

I'm trying to batch my GraphQL queries to retrieve the data I need from multiple repositories with the same request, where each repository has a different cursor. Assuming I have the IDs of 3 nodes ...
Zomtorg's user avatar
  • 163
3 votes
1 answer
734 views

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 ...
Sergey Isaev's user avatar
-1 votes
1 answer
1k views

I want to create a react web app that outputs data from github with the GitHub graphql API. So I used a method that I used in creating a weather web app which still uses graphql and react but my app ...
Charleskimani's user avatar
3 votes
0 answers
2k views

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&...
wujek's user avatar
  • 11.2k
0 votes
2 answers
2k views

I'm using GithubAuthProvider with the added scope repo to get the user's access token which is later used to access the GitHub GraphQL API (the GitHub App has the permissions for Contents and Metadata ...
Žan Ožbot's user avatar
6 votes
1 answer
3k views

I'm using ApolloClient 3 the GitHub GraphQL API to retrieve all releases from a repo. This is what the query looks like: query ($owner: String!, $name: String!, $first: Int, $after: String, $before: ...
donovantc's user avatar
  • 201
3 votes
1 answer
193 views

What is the difference between these two queries in GitHub GraphQL? query { user(login: "desai10") { contributionsCollection { totalPullRequestContributions } } } and ...
Sriram Desai's user avatar