Questions tagged [github-api-v4]

41 questions
1
vote
1 answer

UnknownObjectException at /github/ 404 {"message": "Not Found", "documentation_url": "https://docs.github.com/rest/reference/repos#create-a-repository

I want to create the webhook of the repository as a GitHub webhook. It is done if I create manually in GitHub repo setting webhook, and it works properly. But if I use the API key, this does not work. It gives me error like this #in…
1
vote
0 answers

GitHub GraphQL API: only get issues that have over n comments

I'm playing with GitHub GraphQL API in order to get the list of most commented issues (say, comments > 100) across most popular repositories. Here's the search query that I'm starting from: search(query: "stars:>10000 fork:false pushed:>2020-01-01…
Jura Gorohovsky
  • 9,886
  • 40
  • 46
1
vote
1 answer

How to test an organization with Github's GraphQL API v4 in Postman?

Trying to get an orgs private and public repositories in Postman I've attempted: GET: https://api.github.com/graphql Under Authorization selected: Type: Basic Auth I add my Github username to username and for password per the docs and I place my…
DᴀʀᴛʜVᴀᴅᴇʀ
  • 7,681
  • 17
  • 73
  • 127
1
vote
1 answer

How to Star a Topic on GitHub with API?

Star a topic can be done on the website. But how to do the same operation via GitHub API v3 or v4? I read through the reference but got no clues.
Hao Yue
  • 21
  • 3
1
vote
1 answer

How to get user who added a label on a pull request in GitHub API

I am trying to get data on the user who set a label on a github pull request, but I can't find this in the API docs. Am I missing something?
1
vote
1 answer

GitHub GraphQL API: Get tags for a commit

I don't know if it's just hard to form a useful search for this problem or if there is no solution, but I've been trying to figure out how to use the GitHub GraphQL API to fetch all tags associated with a given commit. I'm new to GraphQL and the…
Adam Coster
  • 1,162
  • 1
  • 9
  • 16
1
vote
1 answer

How to set repository's social media preview via Github API?

I am working on a project where I want to set the social media preview for multiple (lots of repositories) I own. I know there is a manual way to do it as mentioned here. I was wondering if there was some way to do it via Github API or what kind of…
raaj
  • 403
  • 1
  • 5
  • 17
1
vote
0 answers

How to pass the result(response) of a GraphQL query to a mutation as an argument(input)?

I'm building a cli application using GitHub API V4. I need to remove all labels a repository has. URL: https://api.github.com/graphql HEADERS: Accept: application/vnd.github.bane-preview+json Authorization: bearer I need to get the…
1
vote
1 answer

Github API v4 GraphQL not returning release by tagName

I am attempting to retrieve the release information for a particular version of Django. However, the release is always returning a null response. In the example below, I am trying to retrieve the information for Django's 1.11 release: import…
Michael B
  • 5,148
  • 1
  • 28
  • 32
1
vote
0 answers

Retrieve PRs that reference an issue via Github API v4

I have a graphql query which enables me to retrieve all issues for a repository, filtered by some criteria. Now in my team, we have one repository for the code, and one for the issues, so external people can file issues without having access to our…
Tom Macdonald
  • 6,433
  • 7
  • 39
  • 59
0
votes
0 answers

Access github Api without user Authentication

I have usecase to check my remote github repo has latest release tag from my terminal tool but the tool doesn't need any user authentication for github access. I don't want to store the pat token from my code, any other appoarch i can use to solve…
Amalan T
  • 1
  • 1
0
votes
1 answer

Sheet API V4 Save to new row

I'm trying to save from my script to google sheet, but it seems to override the same cells over and over again, I think its about the "range"? I tried to put there - "Patients!A1:C" as I saw in some codes but its not working. How I can save to new…
0
votes
0 answers

Github API: two_factor_requirement_enabled is nil

Steps to reproduce I'm using Github api with Github apps: I am logged in with owner org user and provide next permissions: Read access to actions, administration, deployments, environments, issues, metadata, pull requests. Then I get org info…
0
votes
0 answers

getting unrelated commits for file from 'List repository commits' api when file gets pushed by 'Create a commit with multiple files and actions' api

We have some files to maintain on gitlab which will be committed by the user from ui for web application. For this we are using "Create a commit with multiple files and actions" api. But we are facing issue (i.e. getting unrelated commits of other…
Payal
  • 11
  • 3
0
votes
0 answers

Github Search: how to list users by multiple languages?

Hi guys so I want to list out all github users based on languages. ok so this will list all users who have css language repos https://api.github.com/search/users?q=language:css This will list all users who have css repos or c…
siduck
  • 3
  • 5