Tag: github-graphql
-
Get info about several repositories from Github Graphql API in a single call
6 I am trying to create a query to Github GraphQL API that receive a list of repos as a parameter, and returns the info of those repositories in a single API call, does anyone know how to do that? Something like this (I know this doesn’t work) query myOrgRepos($repos: [String!]!) { search(query:””” repo in…
-
github graphQL api – how to retrieve issue’s project items?
0 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" issue "myIssue" is added to a projectV2 "myProject", which is defined at organization level (not in a repo) project "myProject" contains a…
-
GitHub GraphQL fetch repositories that are not archived
5 Is there a way to fetch only the repos that are not archived? { user(login: “SrikanthBandaru”) { id email isHireable name repositories(first: 100) { # fetch only the repos that are not archived edges { node { name isArchived shortDescriptionHTML description descriptionHTML repositoryTopics(first: 10) { edges { node { topic { name } }…
-
How to get comment Node ID of a discussion in GitHub Action with GitHub GraphQL API
0 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 like "your pipeline is running here" with a link. Then I found that there’s only GraphQL way to add a reply like: mutation { addDiscussionComment(input:{ discussionId:…
-
Using GitHub GraphQL API to Query Filtered Items in ProjectV2 by State
0 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 of CLOSED or MERGED, or based on their milestone. Any help would be greatly appreciated. query…
-
How to create a commit, on newly created empty repository using GitHub Graphql API
0 GraphQL Query I used: mutation CreateGitProfileRepo($name: String!, $description: String!, $homepageUrl: URI!) { createRepository(input: {name: $name, visibility: PUBLIC, description: $description, homepageUrl: $homepageUrl}) { repository { ref(qualifiedName: "main") { repository { id } } } } } I’m getting ref ID as null, as it is an empty repo. Now I’m creating a commit using: mutation…
-
Creating Github Organization using graphql
0 I tried below code to create organization using my github account getting error mutation { createOrganization(input: { login: "besttestzzzz", admin: true }) { organization { id login } } } { "input": { "admin": [ "testgithubaccount" ], "clientMutationId": "", "login": "testgithubaccount" } } I got errors view the below image. github graphql postman github-api…