diff options
-rw-r--r-- | MgaRepo/GitHub.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/MgaRepo/GitHub.py b/MgaRepo/GitHub.py new file mode 100644 index 0000000..519b9e4 --- /dev/null +++ b/MgaRepo/GitHub.py @@ -0,0 +1,10 @@ +import github + +from MgaRepo import Error, config + +class GitHub(object): + def __init__(self, username = config.get("github", "login"), password = config.get("github", "password")): + print("username: %s password: %s" % (username, password)) + self.github = github.Github(login_or_token=username, password=password) + self.organization = self.github.get_organization(config.get("github", "organization", "mdkcauldron")) + self.repos = self.organization.get_repos() |