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))
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))
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())
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)
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())
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())