74 questions
1
vote
1
answer
702
views
How to handle GitHub search API rate limits
I'm building an automated script to do some recurring search using GH search API. However I hit the "Secondary" rate limit sometimes. For referece I'm using github3.py library.
So my ...
0
votes
1
answer
213
views
How to solve exception 410 in python?
I am working to extract issues data from a repo on Github using Github3.py.
The following is a part of my code to extract issues from a repo:
I used these libraries in the main code:
from github3 ...
0
votes
1
answer
846
views
How to put labels on new pull request using github3.py?
I saw that github3.py still doesn't have the attribute labels on Repository.create_pull() as in Repository.create_issue(). But there is the property labels on ShortPullRequest created. So I tried:
...
1
vote
0
answers
73
views
Github3.py returns only issues till May 2020 (1000 issues) but I need for past 2 years and then wish to plot using Line Chart
import github3, json, os.path
gh = github3.login(token="d6xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")#Access token
REPO = 'angular'#name of repository
...
1
vote
1
answer
340
views
GItHub App access to repositories in organization
I have a Github App created under an organization and is installed to a repository under same organization. I tried reading a file from the same repository after authenticating using github3 ...
1
vote
2
answers
2k
views
How to obtain the github organization and repository name from a local clone repository with python?
Apparently github3 module does require you to feed it github organization and repository name as is not able to guess them based on your current repository.
I also checked the https://pypi.org/...
0
votes
1
answer
720
views
Is there a way to include github3.py as an Ansible Playbook library or module, without installing via pip?
My playbook needs to be able to support adding a tag to a github repository when a production deployment is performed. The intent is to automate the generation of a release tag via Ansible's built in ...
1
vote
1
answer
418
views
Github3.py 1.3.0 Get timestamp for commit
I looked through the documentation and even the source code and I can't seem to figure out how to get the timestamp of a commit using the github3.py library. I'm, pretty sure it's there because, well, ...
2
votes
1
answer
183
views
Python Github3 library how to get the exact content of generator of ShortOrganization
I'm using the Github3 library to access the Github Enterprise API. I'm trying to get all organizations a specific user has, but after I got the generator of ShortOrganization, I don't know how to ...
1
vote
1
answer
170
views
Can github3.py be used to find the parent/upstream of a forked repo?
Given a forked repo, how can I use github3.py to find the parent or upstream repo that it was forked from? This is fairly easy with requests but I can not figure out how to do it in github3.py.
With ...
2
votes
1
answer
656
views
github3.py Repository class is there a way to "Create" a branch?
Using version 1.0.0a4 of the github3.py library.
I am trying to create a new file in the repository on a new branch.
Assumption: gh is an authenticated object.
repo = gh.repository('User','Repo')
...
1
vote
1
answer
2k
views
list tags and tag content using github3
We tag commits on a weekly basis, and I want to issue a report to see the tag names and their content, I tried the following using python 3.x and github3
import github3
g = github3.login(token='...
0
votes
2
answers
699
views
delay between requests using github3 in python
I'm using python github3 module and i need to set delay between request to github api, because my app make to much load on server.
I'm doing things such as
git = github3.GitHub()
for i in itertools....
0
votes
1
answer
235
views
How to pull only modified commits/pull requests using github3.py?
I'm writing an ETL job where I keep an updated list of commits, pull requests, and files from our GitHub repos in our data warehouse. I'm currently storing and passing in etags to the various ...
0
votes
1
answer
335
views
Recommended way to list all repos/commits for a given user using github3.py
I'm building a GitHub application to pull commit information from our internal repos. I'm using the following code to iterate over all commits:
gh = login(token=gc.ACCESS_TOKEN)
for repo in gh....
0
votes
1
answer
524
views
Getting revisions data from Github gist
gist_ids = 'abc'
def main():
gh = github3.login (
token=os.environ.get('my_token'),
url=' ')
my_gist = gh.gist(gist_ids)
resp = github3.gists....
3
votes
2
answers
11k
views
github3 0.9.6 TypeError:pop() takes at most 1 argument (2 given)
I am currently using github3.py version 0.9.6, and am receiving an error upon invoking the github3.organization(login) function:
Traceback (most recent call last):
File "Main.py", line 23, in <...
3
votes
1
answer
3k
views
GitHub API get issues description using Python
The task: (using GitHub API)
1) get all closed milestones for a given repo
2) get all issues for that milestone
3) for every issue get it's description
4) finally, using Markdown for example, create ...
1
vote
0
answers
370
views
Retrieve statuses of given branch using github3.py
I'm trying to retrieve the latest (last) description attribute of the status of a pull request by making the following call below. And, then create logic from there on how to process the pull request ...
0
votes
0
answers
263
views
How can I install github3.py via my setup.py?
I want to use github3.py module on my pyramid application.
In my develop enviroment, I can install github3.py via pip and this works fine.
But I need to add github3.py to setup.py for production ...
0
votes
1
answer
2k
views
TypeError: 'GitHubIterator' object does not support indexing [duplicate]
Using github3.py, I want to retrieve the last comment in the list of comments associated with a pull request and then search it for a string. I've tried the code below, but I get the error TypeError: ...
1
vote
2
answers
182
views
"InvalidSchema" when attempting to create file with github3.py
Using github3.py 1.0.0a4, I am trying to make a basic "server" program that creates, updates, deletes, and fetches files. However, my program raises "InvalidSchema" on attempt to create a file. Why? I ...
0
votes
2
answers
100
views
Is github3py thread-safe?
Does anytone knows if github3py is threadsafe.
Specifically:
GitHub.repository()
Repository.iter_pulls()
Repository.branch()
Repository.create_status()
None of the threads edit the objects, just ...
1
vote
1
answer
265
views
Why does github3.py ask for a second authentication factor twice?
I'm using github3.py to access my organization's Github account, and we have two-factor authentication enabled. I'm starting by listing the repositories. Here's the code:
import os
import github3
...
0
votes
1
answer
649
views
Is there a way to get Tag objects instead of Reference ones when listing tags from a repository?
I'm able to successfully list tags from a repository using github3 using:
repo.iter_refs(subspace='tags')
That results in a generator of github3.git.Reference objects. Is there a way for me use a ...