Ejemplo n.º 1
0
def getRepos():
    """Returns all the repos under the user."""
    github = connect()
    user = github.get_user()
    # Get all Repos!
    all_repos = user.get_repos()
    return all_repos
Ejemplo n.º 2
0
def getRepos():
    """Returns all the repos under the user."""
    github = connect()
    user = github.get_user()
    # Get all Repos!
    all_repos = user.get_repos()
    return all_repos
Ejemplo n.º 3
0
def getdetails(name):
    """Gives details about the repo.

    Parameters
    ----------
    name : str
        The name of user's repo of which he wants details.
    """
    github = connect()
    user = github.get_user()
    repo = user.get_repo("NickPy")
    return repo
Ejemplo n.º 4
0
def info():
    """get name of user and details of a repo."""
    github = connect()
    user = github.get_user("nickedes")
    repo = user.get_repo("indent")
    return user.name, repo.name