Questions tagged [github-api-v3]
120 questions
1
vote
1 answer
GitHub API - Get commit details via access token
With the GitHub API, let's say I have used OAuth and I have the client secret of a user. Let's say I also have a repo, say myname/project, as well as a commit ID, say asdfghjkl123. With this information, I know I can get the details of the commit,…

APixel Visuals
- 1,508
- 4
- 20
- 38
1
vote
1 answer
Tracking commits with the GitHub API
I'm looking to work with the GitHub API, but I'm having trouble finding what I need in the documentation.
There's two things I can't find.
I see that I can list all the commits in a repository, but I'm not sure how to get each commit's details…

APixel Visuals
- 1,508
- 4
- 20
- 38
1
vote
1 answer
How to extract comments body from GitHub with Python
I would like to extract only the bodies of comments of the issues with the API v3 (but I am also open to new solutions).
For now I tried to enter this address: (example)…

HABLOH
- 460
- 2
- 12
1
vote
0 answers
Unable to use Enterprise GitHub API to modify a repo under an organization?
I am trying to make the repo private through GitHub Enterprise API by running :
$ curl -X PATCH $GitHubAPIurl -u $username:$password -d '{"name":"$d","private":"true"}' -k
But it returns message: not found
However, if I do a mild change :
$…
user6934519
1
vote
1 answer
Troubles in Expanding Expression within a JSON Object
I am trying to use GitHub API to create an issue, by
curl -u $username -d '{"title" : "Big Files List" , "body" : "'$(find -type f -size +1M)'", "label" : "big files" } $URL -k'
however, I got the response like
curl: (3) [globbing] unmatched…
user6934519
1
vote
1 answer
How to fetch specific amount of users using github api v3?
When I want to fetch github users using this api: https://api.github.com/users it gives me back exactly 46 users. How can I fetch e.g. just 10 of them?

Andrew
- 149
- 1
- 5
- 12
1
vote
1 answer
How to do a source import with GitHub APIv3
background:
I am trying to build an application that will copy a public repository to the logged in account.
Now i am trying to do a source import in PostMan and i am using the following settings:
i make a PUT request to this…

Joost Kaal
- 353
- 1
- 3
- 13
1
vote
1 answer
How to extract specific data in results obtained from using Python Requests library
Please take a look at the code below:
@login_required
def dashboard(request):
code = request.GET.get('code', '')
payload = {
"client_id" : settings.GITHUB_CLIENT_ID,
"client_secret" : settings.GITHUB_CLIENT_SECRET,
…

Caspian
- 633
- 1
- 10
- 29
1
vote
2 answers
GitHub API 401 Bad Credentials in Node but not curl
I'm trying to authenticate on Enterprise GitHub with @octokit/rest. If I use the following Curl I get a list of the API's URL's:
curl -u "my@email.com" https://api.github..com
when I run that I am prompted for a password where I enter my…

runnerpaul
- 5,942
- 8
- 49
- 118
1
vote
1 answer
get the full_name of a repository through the github API
I want to get some information about github repositories using only their name. To do so, I build my url as https://api.github.com/repos/:owner/ But of course it doesn't work because I need the :owner field. I found many ways to get…

Sandip Giri
- 17
- 8
0
votes
0 answers
One hour expiration time for Github APP Installation token problem
I'm collecting data from several repositories (around 10k) from my organization for a AI search engine.
I have written a python script (using PyGithub lib) to fetch the data, including a rate limit access that checks if the run time is close to 60…
0
votes
0 answers
What is the correct mapping to download a zipball from the repo of a private org using GitHub v3 API?
I'm trying to pull, but failing, to download a zipball file from a private org's repo using my GitHub personal acct token that has the proper permissions to pull in the GitHub WebUI and a GitHub v3 API endpoint. According to this doc…

murkywaters
- 95
- 2
- 11
0
votes
0 answers
Kohsuke Github API throws "tree.path contains a malformed path component" error on push to a branch
I tried to push my files through Kohsuke Github API. While doing so, I am getting this error. I couldn't find any proper explanation or documentation for this. Any lead will be appreciated. Thanks in advance.
Caused by:…
0
votes
0 answers
Issue making API request using logged in user's credentials
I am using NextAuth and Github to authenticate a user in my app. I am trying to run a TRPC query to return an authenticated user's github repo information.
const response = await fetch(`https://api.github.com/user`, {
headers:…

ETHan
- 187
- 1
- 4
- 17
0
votes
0 answers
trying to import repository from azure repos to github enterprise account But getting the error {"message: not found}
#import process
Invoke-RestMethod -Method POST -Uri "https://api.github.com/repos/$githubOwner/$githubRepoName/import" -Headers $headers -Body ($importData | ConvertTo-Json)

Satyam
- 1