Ejemplo n.º 1
0
def main():

    repo_name = sys.argv[1]
    githubBot = GithubBot()
    githubBot.create(repo_name)
Ejemplo n.º 2
0
import os
import sys

from githubbot import GithubBot

if len(sys.argv) != 2:
    print("Usage: %s <GitHub username to follow his/her followers>" %
          (sys.argv[0]))

username = sys.argv[1]
print("Going to follow %s's followers:" % username)

with GithubBot(username=os.environ.get('GITHUB_USERNAME'),
               password=os.environ.get('GITHUB_TOKEN')) as gh:
    gh.follow_user_followers(username)
Ejemplo n.º 3
0
def main():

    repo_name = sys.argv[1]
    githubBot = GithubBot()
    githubBot.remove(repo_name)