Questions tagged [pygithub]

PyGitHub is a Python library implementing the GitHub REST API v3, to manage GitHub resources (repositories, user profiles, organizations, etc.) from Python scripts.

PyGitHub is a Python library implementing the GitHub API v3, to manage GitHub resources (repositories, user profiles, organizations, etc.) from Python scripts.

See also

210 questions
0
votes
1 answer

Django UserSocialAuth matching query does not exist

I'm developing a web app with github API. I want to get the token of the user I have authenticated with Python Social Auth, but I get the following error UserSocialAuth matching query does not exist when I'm trying to access the token of the user.…
0
votes
1 answer

how to list child teams by team id using pygithub

how to get child teams by parent team id using pygithub I can't find any API Objects corresponding the following request GET /teams/:team_id/teams
Jeff
  • 33
  • 4
0
votes
1 answer

Adding user to team using only email PyGithub

I am attempting to use the following endpoint https://developer.github.com/v3/teams/members/#add-or-update-team-membership in order to add members to a team. I notice that this requires a GitHub username, and gives me an error if I try this request…
0
votes
1 answer

Get a User Information in Github using PyGithub

I am new to Github programming. I'd like to get user details who are in github by giving the username as input. How do I do that using pygithub? Also how do I get their profile photo too? Thank you
Vishak Raj
  • 83
  • 2
  • 10
0
votes
1 answer

Python PyGithub usage to get/remove a member in an organization

I'm new to Python and Github API, currently trying to use Pygithub to access the Github enterprise API. The target is to find if a specific member is in the organization. If so, remove it from the Org. I have my current Code below: access_token =…
Minwu Yu
  • 311
  • 1
  • 6
  • 24
0
votes
1 answer

Does PyGithub have a way to make conditional calls?

I notice that the GitHub API has an eTag which can be used to return changes since the tag. github3.py has a way to do this, but I prefer PyGithub because it feels more intuitive. Does this feature exist? If not, is there another recommended…
flybonzai
  • 3,763
  • 11
  • 38
  • 72
0
votes
1 answer

Not able to instantiate pyGithub module's Github() object

Anyone having any idea about using the PyGithub module. Facing problem while instantiating the git object. The problem is same for any URL which I have tried. from github import Github g= Github("None", "None", "https://github.com/OpenSCAP") #g =…
Hemant Yadav
  • 307
  • 1
  • 4
  • 19
0
votes
1 answer

Getting the time when the file was committed on Github

I want to somehow want to see if there is a way to get the time for when a file was committed on Github. I have tried using PyGithub and GitPython, but they don't have any options as such. Does anyone know a way around this?
Harshdeep Singh
  • 327
  • 1
  • 5
  • 18
0
votes
1 answer

Convert Buffer to Desired Array?

I'm using pygithub3 to call an api to receive an organization's repositories, but am getting this result: I believe this is a buffer object. Why is this happening? I want the result to…
baranskistad
  • 2,176
  • 1
  • 21
  • 42
0
votes
0 answers

Use python to get lastest 2 commits from Github repo

I am am attempting to get all commits for a specific branch of a repo using the following code. My end goal is to only get the top 2 commits. The issue I am running into is that the commits being returned are only for a specific user. I want to get…
mwhite14
  • 257
  • 1
  • 7
  • 19
0
votes
0 answers

How to get github repo notification using python script?

I have to build a python script which will use to get the notification related to a github repo which contents pull notification, comments, merge to master status etc. After searching I got PyGithub library. but did not get how to make a call and…
yo2bh
  • 1,356
  • 1
  • 14
  • 26
0
votes
0 answers

pygithub3 authentication with ssh keys

Folks, Trying to use pygithub3 to connect to our github repos. I need to use local ssh keys to make the connection, not tokens or u/p as in the docs. Is this possible? The doc do not seem to list the option to auth in with id_rsa I see another…
Cmag
  • 14,946
  • 25
  • 89
  • 140
0
votes
1 answer

Is it possible to access the 'Releases' Tag via PyGithub?

I try to navigate to the releases tag of a specific repository in Github via the PyGithub API. I only can navigate to the repository, but I can't navigate any further. Is there a command in the PyGithub API? UPDATE Or is there another Python API…
Maximilian
  • 1,325
  • 2
  • 14
  • 35
-1
votes
1 answer

Getting Github Repo Filenames Using Python

How do you get a list of all filenames in a Github repo using Python/PyGithub without logging into a user account? How can I use github.Github(self.login, self.password) if I only know about a user name, not his/her password?
stan25
  • 464
  • 2
  • 5
  • 16
-1
votes
2 answers

How can I download a git branch without using git command

I have a private repo and I want to download a branch files from it. My environment doesn't have the git command installed. It would be great if I can do this with Python/PyGithub
Ernesto Cejas
  • 184
  • 1
  • 6
1 2 3
13
14