Questions tagged [github-api]

An API used to retrieve information about data on GitHub.

All API access has to be done over HTTPS, and accessed from the api.github.com domain. All data is sent and received as JSON.

Online resources:

3713 questions
45
votes
13 answers

How to parse link header from github API

the github API sends the pagination data for the json results in the http link header: Link: ; rel="next", ; rel="last" since the github API is not…
toxinlabs
  • 942
  • 1
  • 10
  • 14
45
votes
4 answers

Permission denied to github-actions[bot]

I'm using mkdocs to generate documents for my project,now I can't deploy those docs to Github pages,it tell me: remote: Permission to XXX.git denied to github-actions[bot]. fatal: unable to access 'XXX': The requested URL returned error: 403 This…
forestbat
  • 453
  • 4
  • 10
45
votes
9 answers

How can I get a list of all pull requests for a repo through the github API?

I want to obtain a list of all pull requests on a repo through the github API. I've followed the instructions at http://developer.github.com/v3/pulls/ but when I query /repos/:owner/:repo/pulls it's consistently returning fewer pull requests than…
ResearchMills
  • 551
  • 1
  • 4
  • 3
44
votes
7 answers

How to create a commit and push into repo with GitHub API v3?

I want to create a repository and Commit a few files to it via any Python package. How do I do? I do not understand how to add files for commit.
Denis SkS
  • 816
  • 2
  • 7
  • 15
43
votes
4 answers

How to delete my follower at github?

Is it possible to do? If yes, could you please provide a curl example?
Geirby
  • 495
  • 1
  • 4
  • 9
41
votes
5 answers

how to use github api token in python for requesting

I'm able to obtain Github api token in python using username and password but i'm not able to use that API-Token for requesting any POST/DELETE/PATCH. How do we use Github API-Tokens for making any request. For eg, i have API-Token lets say…
softvar
  • 17,917
  • 12
  • 55
  • 76
39
votes
4 answers

How to find a Github file 's SHA blob

I'm using this API to update a file on my repo, it requires me to have a valid SHA blob for a file that I want to update: http://developer.github.com/v3/repos/contents/ How do I find the SHA blob for the specific file? Supposed in my testrepo in the…
Kiddo
  • 1,910
  • 8
  • 30
  • 54
37
votes
7 answers

Embed Github contributions graph in website

Is there a way to embed the Github contributions graph in HTML5?
geek4079
  • 539
  • 2
  • 6
  • 15
37
votes
7 answers

List all GitHub repos for an organization - INCLUDING those in teams

Here's my query to the GitHub API curl -i -u {user} https://api.github.com/orgs/{org}/repos?type=all But this does not list all repos for this organization that I have access to. Specifically, it does not list repos in the organization that are…
user779860
  • 665
  • 1
  • 7
  • 15
36
votes
1 answer

Dropdown for GitHub Workflows input parameters

I want to create a dropdown list for my GitHub Action Input parameter. This should help in selecting a value from the dropdown just like how the option is there to select the branches.
vik_nag
  • 415
  • 1
  • 5
  • 7
36
votes
2 answers

GitHub Search API only return 30 results

https://api.github.com/search/issues?q=stress+test+label:bug+language:python+state:closed the above query is suppose to return 76 results, and when I try to run it, it only returns 30. I guess GitHub return results in portions when it is over 30.…
Jack Feng
  • 895
  • 2
  • 9
  • 24
36
votes
1 answer

Github push event signature don't match

I'm coding a Webhook for GitHub, and implemented secure verification in KOA.js as: function sign(tok, blob) { var hmac; hmac = crypto .createHmac('sha1', tok) .update(blob) .digest('hex'); return 'sha1=' + hmac; } ... key =…
marcoslhc
  • 1,194
  • 1
  • 17
  • 29
36
votes
6 answers

Is there a way to get the latest tag of a given repo using github API v3

I am relatively new to the github api and I am struggling to get the latest tag of a given repo. Q: Why I need that ? A: As a QA I am responsible for testing and releasing to LIVE and our team owns around 40 artefacts(repos in github). I want to…
36
votes
6 answers

How to get all of a user's public github commits

Regardless of project, I'd like to know if there's an easy way of getting all commits to all public repositories for a single username. Since I belong to multiple organizations, I'm trying to compile a list of the projects on which I'm a…
markrickert
  • 648
  • 1
  • 5
  • 10
35
votes
1 answer

How to use ssh authentication with github API?

Is there some way to use ssh-based authentication when accessing the GitHub API through the command line (via, e.g., curl, etc.?). FWIW, I tried many variations of the following (varying the way I specified my public ssh key file) but in every case…
kjo
  • 33,683
  • 52
  • 148
  • 265