Questions tagged [github-api-v3]
120 questions
2
votes
1 answer
Search a github organization for repositories with a known PR name pattern
One of our application can submit a github PR based on user request. User can decide to merge this PR or keep them unmerged.
Is there a way to search a git hub organization to find repositories with an unmerged PR. PR follows a naming pattern ie a…

kallada
- 1,829
- 4
- 33
- 64
2
votes
0 answers
Node.js/GitHub API - commit Image file in repository with github-api
I extracted a dataURL from a canvas and I want to send this content to my GitHub Repository using 'github-api': http://github-tools.github.io/github/docs/3.1.0/Repository.html#writeFile
I can do commit but only with a String and on GitHub I can see…

Salvatore Vestita
- 21
- 2
2
votes
1 answer
Get all issues in Github Milestone
I want to get all issues in Github with Java client for exact Milestone. I tried this:
public void listClosedIssuesInMilestone(String host, String token, String repository_name, String milestone_name) throws IOException
{
GitHubClient…

Peter Penzov
- 1,126
- 134
- 430
- 808
1
vote
1 answer
How to perform a force push using Github API V3 from one repository to another?
I'm working on a service that uses github. For a function, I need to force push everything from Repo 1 to Repo 2.
*Don't care about any of the content, trees, commit history, etc of Repo 2. It is to be replaced.
End goal is that Repo 2 ends up…

Jacob Wartofsky
- 11
- 1
1
vote
0 answers
How to send a zip file to a github PR as an attachment
I have a requirement to send a zip file to a open PR as a comment for the PR reviewer. I tried below curl command but getting
curl -v -X POST \ -H "Authorization: Bearer " \ -H "Content-Type: application/zip" \ --data-binary "@zip.zip" \…

manjunath kallannavar
- 597
- 5
- 16
1
vote
0 answers
Copy GitHub project including items
GitHub provides a project board called GitHub Projects.
I want to move a project from my personal account to an organization account including any items (cards/issues/PRs) that are part of the project.
As far as I have seen, GitHub Projects doesn't…

dan1st
- 12,568
- 8
- 34
- 67
1
vote
1 answer
which REST API git client is calling
I wonder, if there is a way to know which API git client is calling for the command?
For example, how to tell which API git client is calling for git log. Is there any generic way of discovering this?

Prosunjit Biswas
- 935
- 9
- 16
1
vote
0 answers
How to determine if a PR has all required codeowner approvals using GH REST API?
I would like to use the GH REST API to determine if a particular PR has all required codeowner approvals. Then, if the answer is yes, I would like to further determine the date and time at which the final approval occurred.
I have tried a bunch of…

Zachary Turner
- 11
- 1
1
vote
0 answers
Can a workflow badge be retrieved with the GitHub API?
The GitHub API documentation shows an example for retrieving repository workflows.
The response includes a badge_url field for each workflow. For example:
"badge_url": "https://github.com/octo-org/octo-repo/workflows/CI/badge.svg"
Is it possible to…

dannyadam
- 3,950
- 2
- 22
- 19
1
vote
0 answers
how to get all the repos which have a security vulnerability issue open on github(array of repos are there)
I'm having around 10 repos, in which i need to get is there any open security vulnerability issues open in any of them if yes, then i need to get the url for the issue, the query params mentioned in the documentation is quite confusing, may be i'm…

Avinash jain
- 486
- 1
- 7
- 15
1
vote
1 answer
How to handle GitHub search API rate limits
I'm building an automated script to do some recurring search using GH search API. However I hit the "Secondary" rate limit sometimes. For referece I'm using github3.py library.
So my workaround so far is to check the rate limit before each search…

po5i
- 548
- 5
- 19
1
vote
0 answers
GitHub App token not working for GraphQL API
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 token generated from a GitHub App does not work. The…

Nikhil
- 23
- 3
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…

Sakib Malik
- 31
- 4
1
vote
0 answers
Best way to get Github repository info using Service Account
We're building a microservice to interact with Github REST API to read repository information within our organization. At the moment, we use individual user id and personal access token (created for the user id) to access the remote api…

Vivek T S
- 65
- 8
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