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
1532
votes
49 answers

Message "Support for password authentication was removed."

I got this error on my console when I tried to use git pull: remote: Support for password authentication was removed on August 13, 2021. remote: Please see…
Daemes
  • 14,239
  • 3
  • 6
  • 13
537
votes
14 answers

How can I see the size of a GitHub repository before cloning it?

Is there a way to see how big a Git repository is on GitHub before you decide to clone it? This seems like a really obvious/basic statistic, but I can't find how to see it on GitHub at all.
jhabbott
  • 18,461
  • 9
  • 58
  • 95
269
votes
1 answer

What's the difference between tag and release?

Using GitHub's API, I can't get the releases list, but I can get the tags list. What's the difference between them?
naor
  • 3,460
  • 3
  • 18
  • 13
243
votes
25 answers

Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead

I was using a username password for pushing my code. It was working for several months, but suddenly I'm not able to do it and am getting this error: Username for 'https://github.com': shreyas-jadhav Password for…
Shreyas Jadhav
  • 2,363
  • 4
  • 10
  • 23
188
votes
9 answers

Use Invoke-WebRequest with a username and password for basic authentication on the GitHub API

With cURL, we can pass a username with an HTTP web request as follows: $ curl -u https://api.github.com/user The -u flag accepts a username for authentication, and then cURL will request the password. The cURL example is for Basic…
Shaun Luttin
  • 133,272
  • 81
  • 405
  • 467
158
votes
24 answers

How to retrieve the list of all GitHub repositories of a person?

We need to display all the projects of a person in his repository on GitHub account. How can I display the names of all the git repositories of a particular person using his git-user name?
user1127981
  • 1,581
  • 2
  • 10
  • 3
154
votes
32 answers

Delete a workflow from GitHub Actions

I create a couple workflows in the .github/workflows folder of my repository to experiment with GitHub Actions. I have since learned quite a bit and deleted said "experimental" workflows from my repo. After deleting the "experimental" workflow yaml…
skålfyfan
  • 4,931
  • 5
  • 41
  • 59
134
votes
5 answers

GitHub OAuth2 Token: How to restrict access to read a single private repo

Use-case: Command-line application (which is deployed to a 3rd party machine) needs to be able to download a tarball copy of a private repo that belongs to an organization via the GitHub API (v3) Application should only be able to access this one…
Bounce2thaOunce
  • 1,341
  • 2
  • 8
  • 3
122
votes
2 answers

Setting up a Github Commit RSS feed

I am trying to have my github commits as an RSS feed but so far I have not managed to figure it out. I know that a private feed is available with the following syntax: https://github.com/username.atom?token=token But this the user's activity feed.…
jalagrange
  • 2,291
  • 2
  • 19
  • 24
104
votes
11 answers

Git cli: get user info from username

Is there a way to get the name of the user, given only their username? Something like this output git show (I know this doesn't work) username: username name: First Last email: email@address I know I can do this with a GitHub api call,…
cwhelms
  • 1,731
  • 3
  • 12
  • 14
103
votes
1 answer

How do I generate the GitHub OAuth token for organization accounts?

I have created an organization on GitHub. My organization has some repos. These repos have API documentation that I would like to re-build and publish to gh-pages branch via Travis-CI. In order to give Travis-CI access to my organization's repos I…
davidrpugh
  • 4,363
  • 5
  • 32
  • 46
89
votes
15 answers

How can I export GitHub issues to Excel?

How can I export all my issues from an Enterprise GitHub repository to an Excel file? I have tried searching many Stack Overflow answers but did not succeed. I tried this solution too (exporting Git issues to CSV and getting "ImportError: No module…
mmar
  • 1,840
  • 6
  • 28
  • 41
86
votes
5 answers

Get GitHub avatar from email or name

I'm trying to get the GitHub user picture (avatar) from users of GitHub. I've found these API: https://avatars.githubusercontent.com/ https://avatars.githubusercontent.com/u/ But I can't find a way to get the avatar from the user…
Fez Vrasta
  • 14,110
  • 21
  • 98
  • 160
80
votes
8 answers

Is there a way to lock individual files or directories on fork when using git?

We are a team of 60+ developers working on the same product and are moving from SVN to Git and GitHub. We have a process in SVN where in individual files are locked and whenever a developer wants to commit code, he needs to get it unlocked by the…
Karthick S
  • 3,204
  • 6
  • 36
  • 52
78
votes
13 answers

GitHub API: Repositories Contributed To

Is there a way to get access to the data in the “Repositories contributed to” module on GitHub profile pages via the GitHub API? Ideally the entire list, not just the top five, which are all you can get on the web apparently.
outoftime
  • 2,190
  • 1
  • 16
  • 17
1
2 3
99 100