Questions tagged [github-api-v3]

120 questions
0
votes
1 answer

GET /repos/{owner}/{repo}/pulls/{pull_number}/merge returns 404

Request curl --location --request GET 'https://api.github.com/repos/gittestapi123/DataStructure/pulls/1/files' \ Above GET API returns 200 OK Reponse { "sha": "9f4b6d8bfeaf44aaa69872286163784706d1b053", "filename": "testFile1", …
Thangakumar D
  • 714
  • 5
  • 12
  • 27
0
votes
1 answer

GitHub Issues Rest API returns 404

I am trying to access the issues assigned to a user (me, in this case) using GitHub's Rest API: GitHub Issues API I am just using Postman. What I have done: URL: https://api.github.com/issues Method: GET Headers: Accept:…
Siddharth Bhansali
  • 2,017
  • 2
  • 10
  • 19
0
votes
0 answers

How to increase github API rate limit?

I am using this endpoint https://api.github.com/user/${githubIdOrLogin}. Right now, it has 60 API calls/hour. I want to increase that. How to do that. This is my code for the API call: export const getGitHubUserData = async (githubIdOrLogin) => { …
r121
  • 2,478
  • 8
  • 25
  • 44
0
votes
1 answer

Check if a new pull request was created

Is it possible to check every x seconds and determine if a new pull request was created on a github repository, and perform a function on it (I am using the JavaScript library @octokit/rest)? So far I have const { Octokit } =…
Lakshaya U.
  • 1,089
  • 1
  • 5
  • 21
0
votes
0 answers

I want to create a GitHub Actions workflow which periodically checks the age of a repository's deploy keys. How can this be done?

I have a repository which contains deploy keys. I want a workflow job which periodically checks whether any of the deploy keys are reaching their maximum allowed age before they must be rotated. I tried writing a workflow like this, using the…
Magnus
  • 589
  • 8
  • 26
0
votes
2 answers

Curl command for creating Github Repository is not working

I tried the following code for creating a repository. But it gives JSON parsing problem. What causes this?. I took this code from https://docs.github.com/en/rest/reference/repos tried in python code using requests.post method. But that too gave the…
R Nanthak
  • 344
  • 3
  • 17
0
votes
1 answer

How can I get a commit count through github-api?

I want to get a year's commit count for the user. I checked the github-api v3 reference. but, Only the repertory commit count could be known. How can I know the number of commit to all repertories in a year for a user?
mgjang
  • 67
  • 9
0
votes
1 answer

receiving error 'Problems parsing JSON' when trying to comment on a pull request Using GitHub API

Im trying to comment on a pull request using githubs api but I'm getting the error shown in the title. The only solutions that I've seen on stack overflow is to json.dumps the data but that did not resolve the problem for me. What could I be doing…
sharjeel
  • 61
  • 9
0
votes
2 answers

Github API v3, post issues / authentication

I am working on a project making a Kanban board using the Github API v3. I have no problem with get methods, but when it comes to post methods i get a 404 response, and from what i read in the documentation, this seems to be a authentication…
0
votes
1 answer

github api is it possible to bring down requests?

Playing around with the Github API, I see that there is a limit of 5,000 requests an hour. Is there a way to increase this? (Not the main question) When I hit the /users/:username/events endpoint, I get back an array of events. The ones that are…
Syn
  • 938
  • 1
  • 10
  • 21
0
votes
0 answers

Chrome extension fetch not refetching

i use an alarm for fetching github notifications using github v3 api, and noticing the fetch api are getting called timely, but are not getting the newest results, not sure what could be the problem? try{ const count = await…
yc_l
  • 1
  • 2
0
votes
0 answers

Using Githup api - -i need to find the most commit person in the last year with java code

This way I pulled all the repositories: public static void getAllCommitUrlReader() throws MalformedURLException, IOException { HttpURLConnection httpURLConnection = (HttpURLConnection) new URL( …
0
votes
0 answers

How to get version/tag(where changes were reflected) of merged Pull requests using github?

I want to get the version/tag where the changes of merged PR were reflected. To get that I tried constructing commits tree for the master branch using git API repos/:owner/:name/commits?sha=.After constructing tree, I will map all the…
0
votes
1 answer

GitHub Statuses: Failed status but can still merge protected branch

I've been playing around with the Github API to not allow pull requests to merge if commit status are marked as failure. I'm running into this issue that say if I have 5 commits (most recent - lease) commit1: status-failure commit2:…
James
  • 21
  • 1
0
votes
1 answer

How to post a message to the github api using hub api?

I want to use hub to create some automation script but can't figure out how to post a message to the api. More specifically it is this api endpoint I want to post to: https://developer.github.com/v3/users/gpg_keys/#create-a-gpg-key I've tried the…
Tomas Jansson
  • 22,767
  • 13
  • 83
  • 137