Ejemplo n.º 1
0
def unprotect(args):
    """Unprotect a branch in each student's repository so they can force push to it."""

    for branch in args.branch:
        logging.info("Unprotecting %s...", branch)
        #pylint: disable=no-value-for-parameter, cell-var-from-loop
        manage_repos(args, lambda repo, _: repo.unprotect(branch))
Ejemplo n.º 2
0
def unprotect(args):
    """Unprotect a branch in each student's repository so they can force push to it."""
    branch = args.branch if args.branch else "master"
    return manage_repos(args, lambda repo: repo.unprotect(branch))
Ejemplo n.º 3
0
def unarchive(args):
    """Unarchive each student repository so it will show back up in the project list.
    """
    return manage_repos(args, lambda repo: repo.archive())
Ejemplo n.º 4
0
def lock(args):
    """Sets each student to Reporter status on their homework repository so
    they cannot push changes, etc.
    """
    #pylint: disable=no-value-for-parameter
    return manage_repos(args, _lock)
Ejemplo n.º 5
0
def archive(args):
    """Archive each student repository so it won't show up in the project list.
    """
    return manage_repos(args, lambda repo: repo.archive())
Ejemplo n.º 6
0
def unarchive(args):
    """Unarchive each student repository so it will show back up in the project list.
    """
    #pylint: disable=no-value-for-parameter
    return manage_repos(args, lambda repo, _: repo.unarchive())