added entries from backlog

This commit is contained in:
Trilarion
2021-09-06 15:22:03 +02:00
parent 3abd576462
commit d1ce9f6e1c
29 changed files with 337 additions and 57 deletions

View File

@ -1,5 +1,5 @@
"""
Everything specific to the Github API (via PyGithub).
Everything specific to the Github API (via PyGithub - https://pygithub.readthedocs.io/en/latest/index.html).
"""
from github import Github, GithubException
@ -53,3 +53,12 @@ def retrieve_repo_info(repos, token=None):
if single_repo:
result = result[0]
return result
def get_user(login, token=None):
if token:
g = Github(token)
else:
g = Github()
user = g.get_user(login)
return user