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
75
votes
2 answers

GitHub Api download zip or tarball link

There was a good link here about how the zip/tarball string is created When I download a zip from github, what is the hex string at the end of the file name represent? But I'm looking at the GitHub APIv3 and I was curious if I'm missing…
mkly
  • 2,253
  • 2
  • 18
  • 23
75
votes
6 answers

Get current date and time in GitHub workflows

I have a GitHub workflow for releasing nightly snapshots of the repository. It uses the create-release action. This is how the workflow file looks right now: name: Release Nightly Snapshot on: schedule: - cron: "0 0 * * *" jobs: build: …
72
votes
5 answers

Can I make releases public from a private github repo?

I have an application which is in a private github repo, and am wondering if the releases could be made public so that the app can auto-update itself from github instead of us having to host it. Additionally I'm wondering if it's possible to use the…
eggbert
  • 3,105
  • 5
  • 30
  • 39
71
votes
2 answers

What is "Developer Program Member" on Github.com

I have seen couple of Github profiles having "Developer Program Member". I searched on Google a lot but not able to find how people get that in their profile.
Vaibhav Mule
  • 5,016
  • 4
  • 35
  • 52
65
votes
9 answers

How to list organization's private repositories via GitHub API?

I'm trying to get a list of an organization's all repositories, including private ones. (Or to be more specific, all of the private repositories a certain user has access to.) Reqesting info for the organization…
Jonik
  • 80,077
  • 70
  • 264
  • 372
64
votes
2 answers

What exactly is a Release in GitHub?

What is it exactly? For what is it used? How widespread is the usage? How is it usually used?
Ernst Robert
  • 2,037
  • 4
  • 25
  • 50
62
votes
3 answers

Github user email is null, despite user:email scope

I am following Github’s OAuth flow, and obtaining an access token that gives me access to the user’s email scope. When I exchange a code for an access token, using the https://github.com/login/oauth/access_token endpoint, I get the following…
robertjd
  • 4,723
  • 1
  • 25
  • 29
59
votes
3 answers

Is it possible to get a list of merges into a branch from the Github website OR API?

In our workflow, no "direct" commits are made into the master branch. The master branch only receives merges from Pull Requests. We can think of each merge then as a new feature added to the master branch. So I'd like to get a list of merges into…
andy
  • 8,775
  • 13
  • 77
  • 122
57
votes
4 answers

Github API: Retrieve all commits for all branches for a repo

According to the V2 documentation, you can list all commits for a branch with: commits/list/:user_id/:repository/:branch I am not seeing the same functionality in the V3 documentation. I would like to collect all branches using something…
adamrneary
  • 645
  • 1
  • 7
  • 10
57
votes
5 answers

Get all file names from a Github repo through the Github API

Is it possible to get all the file names from repository using the GitHub API? I'm currently trying to tinker this using PyGithub, but I'm totally ok with manually doing the request as long as it works. My algorithm so far is: Get the user repo…
Anton Antonov
  • 1,217
  • 2
  • 14
  • 21
55
votes
3 answers

Intuitive way to view most active fork in GitHub

This is a network graph of a GitHub repository: There is no indication of which fork has the most stars and watchers. The commits may be simple updates to documentation files, for example. Is there a way to evaluate forks in GitHub to determine…
Hanxue
  • 12,243
  • 18
  • 88
  • 130
54
votes
3 answers

whats the lifetime of Github OAuth API access token

what is the expiry time of github oauth access token. And also how do I renew it. I don't see any refresh token in their documentation. Please guide me. Thanks in advance.
qnimate
  • 879
  • 1
  • 7
  • 12
51
votes
5 answers

Create comment on pull request

GitHub's comment API seems to allow you to create comments on a pull request, but only if you supply a specific line number in the diff to comment on. Is there a way to create a comment on the pull request as a whole, the equivalent of typing at…
cbmanica
  • 3,502
  • 7
  • 36
  • 54
49
votes
4 answers

Get github username by id

Using this link I can see that my (tonylampada) id on github is 218821 https://api.github.com/users/tonylampada How could I do the opposite? Given the user id = 218821, what's the username? Update Answering nulltoken here because it's a long story…
Tony Lâmpada
  • 5,301
  • 6
  • 38
  • 50
47
votes
1 answer

Is there a URL query string for searching own GitHub Gists?

Is there a URL query string for searching only own GitHub Gists? I wouldn't care if it only worked with public Gists. The only thing I could find is the URL for searching all public Gists, but that's not very helpful for finding own…
psteinweber
  • 813
  • 12
  • 21