From 2613d87e1e31a5ca386e91397aef03b9c223d96e Mon Sep 17 00:00:00 2001 From: Christopher Bohn <bohn@unl.edu> Date: Mon, 4 May 2020 15:59:27 -0500 Subject: [PATCH] spring cleaning --- api/gitlab_classes.py | 3 +- experimentation/canvas_experiments.py | 75 ------- experimentation/gitlab_demo.py | 45 ----- experimentation/gitlab_functions.py | 188 ------------------ old-automation/01-clone.py | 74 ------- old-automation/05-extract_teams.py | 34 ---- old-automation/1195/01-clone-reset.sh | 74 ------- old-automation/1195/03-clone.sh | 24 --- old-automation/1195/03-reset.sh | 14 -- old-automation/1195/03-revert.sh | 15 -- old-automation/1195/09-clone.sh | 27 --- old-automation/1195/12-clone.sh | 26 --- old-automation/1195/28-clone.sh | 27 --- old-automation/README.md | 7 - old-automation/{1195 => }/count_changes.c | 0 .../{1195 => }/getAllContributions.sh | 0 old-automation/{1195 => }/getContributions.sh | 0 old-automation/{1195 => }/reset.sh | 0 old-automation/{1195 => }/rollback.sh | 0 old-automation/{1195 => }/update.sh | 0 20 files changed, 1 insertion(+), 632 deletions(-) delete mode 100644 experimentation/canvas_experiments.py delete mode 100644 experimentation/gitlab_demo.py delete mode 100644 experimentation/gitlab_functions.py delete mode 100644 old-automation/01-clone.py delete mode 100644 old-automation/05-extract_teams.py delete mode 100755 old-automation/1195/01-clone-reset.sh delete mode 100755 old-automation/1195/03-clone.sh delete mode 100755 old-automation/1195/03-reset.sh delete mode 100755 old-automation/1195/03-revert.sh delete mode 100755 old-automation/1195/09-clone.sh delete mode 100755 old-automation/1195/12-clone.sh delete mode 100755 old-automation/1195/28-clone.sh delete mode 100644 old-automation/README.md rename old-automation/{1195 => }/count_changes.c (100%) rename old-automation/{1195 => }/getAllContributions.sh (100%) rename old-automation/{1195 => }/getContributions.sh (100%) rename old-automation/{1195 => }/reset.sh (100%) rename old-automation/{1195 => }/rollback.sh (100%) rename old-automation/{1195 => }/update.sh (100%) diff --git a/api/gitlab_classes.py b/api/gitlab_classes.py index a797d77..cf9b67a 100644 --- a/api/gitlab_classes.py +++ b/api/gitlab_classes.py @@ -264,7 +264,7 @@ class GitlabCommit: blank_line_comment = '' else: blank_line_comment = 'is missing a blank line after the subject' - overlong_lines = self._number_of_lines_too_long(lines,subject_line_length,message_line_length) + overlong_lines = self._number_of_lines_too_long(lines, subject_line_length, message_line_length) if overlong_lines == 0: overlong_line_comment = '' elif overlong_lines == 1: @@ -277,7 +277,6 @@ class GitlabCommit: conjunction = ' and ' return f'{commit_id} {blank_line_comment}{conjunction}{overlong_line_comment}.' - # git_commit fields: # comments # discussions diff --git a/experimentation/canvas_experiments.py b/experimentation/canvas_experiments.py deleted file mode 100644 index d4c0fa5..0000000 --- a/experimentation/canvas_experiments.py +++ /dev/null @@ -1,75 +0,0 @@ -from canvasapi import Canvas -from config import Config -from course import Course - - -if __name__ == '__main__': - canvas = Canvas(Config.canvas_url, Config.canvas_api_key) - """ - # user = canvas.get_user(30266045, 'cbohn2') - # print(user) - course = canvas.get_course(61133) - print(course) - users = course.get_users(enrollment_type=['student']) - for member in users: - print(member) - users = course.get_users(enrollment_type=['teacher', 'ta']) - for member in users: - print(member) - groups = course.get_groups() - for group in groups: - print(group) - group_categories = course.get_group_categories() - for group_category in group_categories: - print(group_category) - group = groups[0] - print(f'using {group}') - members = group.get_memberships() - users = group.get_users() - for member in members: - print(member) - for member in users: - print(member) - print('When we have a sandbox, the thing to try is "create_membership(user)"') - print('Meanwhile, let\'s see if we get user by NUID') - # user = canvas.get_user('30266045', 'sis_login_id') - print('Nope') - user = canvas.get_user(16939) - print(user.get_user_logins()[0]) - # print('Let\'s try user by NUID using Canvas\' RESTful API') - # requester = Requester(Config.canvas_url, Config.canvas_api_key) - print('Let\'s try searching for an account') - recipients = canvas.search_recipients() - print(recipients) - """ - """ - course = canvas.get_course(Course.canvas_course_id) - users = course.get_users() - for user in users: - print(user.name) - users = course.get_users(enrollment_type=['student']) - user_list = [] - for user in users: - user_list.append(user) - for user in user_list: - print(user) - # group_category = course.create_group_category('foo') - # foo1 = group_category.create_group() - # print(foo1.name) - group_category = course.get_group_categories()[0] - foo1 = group_category.get_groups()[0] - foo2 = group_category.create_group(name='foo2') - foo2.create_membership(user_list[0]) - foo2.create_membership(user_list[1]) - users = foo2.get_users() - for user in users: - print(user.name) - """ - user = canvas.get_user(30266045, 'sis_user_id') # can retrieve my own user - print(user) - # user = canvas.get_user(76390201, 'sis_user_id') # cannot retrieve arbitrary user - # print(user) - users = canvas.get_course(Course.canvas_course_id).get_users() - # user = list(filter(lambda s: s.sis_user_id == 76390201, users))[0] - user = list(filter(lambda s: s.login_id == 'mkluck2', users))[0] - print(user) \ No newline at end of file diff --git a/experimentation/gitlab_demo.py b/experimentation/gitlab_demo.py deleted file mode 100644 index 7e0bb85..0000000 --- a/experimentation/gitlab_demo.py +++ /dev/null @@ -1,45 +0,0 @@ -from gitlab import Gitlab -from config import Config - -""" -def add_rubi(git_server): - team_number = 99 - project_name = f'foo{team_number}' - project = gitlab_functions.create_project_in_group(git_server, Course.gitlab_namespace, project_name) - user = gitlab_functions.get_user_by_name(git_server, 'rubi.quinones') - gitlab_functions.add_user_to_project_as_maintainer(project, user) - team_number = 98 - project_name = f'bar{team_number}' - project = gitlab_functions.create_project_in_group(git_server, Course.gitlab_namespace, project_name) - user = gitlab_functions.add_user_to_project_as_maintainer(git_server, project, 'rubi.quinones') - team_number = 97 - project_name = f'baz{team_number}' - project = gitlab_functions.create_project_in_group(git_server, Course.gitlab_namespace, project_name) - gitlab_functions.add_user_to_project_as_maintainer(git_server, project, user) -""" - - -""" -def add_and_print_issues(git_server): - project_name = f'{Course.gitlab_namespace}/baz97' - project = gitlab_functions.get_project_by_path(git_server, project_name) - issue1 = gitlab_functions.create_issue(project, 'Larry', 'Larry Fine') - issue2 = gitlab_functions.create_issue(project, 'Moe', 'Moe Howard') - issue3 = gitlab_functions.create_issue(project, 'Curly', 'Curly Howard') - - issue2.state_event = 'close' - issue2.save() - - issues = gitlab_functions.get_issues(project) - for issue in issues: - if issue.closed_at is None: - print(f'Issue #{issue.iid} created at {issue.created_at} and updated at {issue.updated_at}') - else: - print(f'Issue #{issue.iid} created at {issue.created_at} and closed at {issue.closed_at}') -""" - - -if __name__ == '__main__': - git = Gitlab(Config.gitlab_url, private_token=Config.gitlab_api_key) - # add_rubi(git) - # add_and_print_issues(git) diff --git a/experimentation/gitlab_functions.py b/experimentation/gitlab_functions.py deleted file mode 100644 index 2593268..0000000 --- a/experimentation/gitlab_functions.py +++ /dev/null @@ -1,188 +0,0 @@ -import gitlab -from config import Config - - -def get_user_by_name(git_server, username): - return git_server.users.list(username=username)[0] - - -def get_user_by_id(git_server, user_id): - return git_server.users.get(user_id) - - -def get_project_by_id(git_server, project_id): - return git_server.projects.get(project_id) - - -def get_project_by_path(git_server, namespace_and_name): - return git_server.projects.get(namespace_and_name) - - -def get_projects_by_group(git_server, group_id): - return git_server.groups.get(group_id).projects.list(all=True) - - -def get_projects_by_keyword(git_server, search_term): - return git_server.projects.list(search=search_term, all=True) - - -def create_project(git_server, project_name): - git_server.projects.create({'name': project_name}) - - -def create_project_in_group(git_server, group_name, project_name): - group_id = git_server.groups.get(group_name).id - return git_server.projects.create({'name': project_name, 'namespace_id': group_id}) - - -def add_user_to_project_as_maintainer(git_server, project, user): - if isinstance(user, str): - git_user = get_user_by_name(git_server, user) - else: - git_user = user - return project.members.create({'user_id': git_user.id, 'access_level': gitlab.MAINTAINER_ACCESS}) - - -def get_issues(project): - return project.issues.list(all=True) - - -def create_issue(project, title, description): - return project.issues.create({'title': title, 'description': description}) - - -# user fields-- -# id: gitlab User ID number -# name: plain-text human name -# username: gitlab username -# state -# avatar_url -# web_url: https URL to user's git site, would be the base path to any personal repositories they created - - -# project fields-- -# id: Project ID number -# description -# name: project name without namespace -# name_with_namespace: project name with namespace, spaces around slashes -# path: path without namespace (may differ from name if name has spaces) -# path_with_namespace path with namespace, no spaces around slashes -# created_at -# default_branch -# tag_list -# ssh_url_to_repo ssh URL to clone repository -# http_url_to_repo https URL to clone repository -# web_url https URL to git site, should be http_url_to_repo without trailing '.git' -# readme_url https URL to README.md -# avatar_url -# star_count -# forks_count -# last_activity_at -# namespace namespace's JSON object -# _links JSON object with api/v4 links to self, issues, merge_requests, -# repo_branches, labels, events, members -# empty_repo -# archived -# visibility 'private', etc. -# resolve_outdated_diff_discussions -# container_registry_enabled -# issues_enabled -# merge_requests_enabled -# jobs_enabled -# snippets_enabled -# issues_access_level -# repository_access_level, -# wiki_access_level -# builds_access_level -# snippets_access_level -# shared_runners_enabled -# lfs_enabled -# creator_id gitlab User ID of user who created repository -# import_status -# import_error -# open_issues_count -# runners_token -# ci_default_git_depth -# public_jobs -# build_git_strategy -# build_timeout -# auto_cancel_pending_pipelines -# build_coverage_regex -# ci_config_path -# shared_with_groups -# only_allow_merge_if_pipeline_succeeds -# request_access_enabled -# only_allow_merge_if_all_discussions_are_resolved -# printing_merge_request_link_enabled -# merge_method -# auto_devops_enabled -# auto_devops_deploy_strategy -# permissions - - -# issue fields-- -# id universally-unique identifier -# iid project-unique identifier -# project_id -# title -# description -# state opened or closed -# created_at format yyyy-mm-ddThh:mm:ss.sssUTCoffset (e.g., '2019-08-13T11:32:44.590-05:00') -# updated_at same date format -# closed_at same date format, or None (seems to prefer no UTC offset, e.g., '2019-08-13T11:32:44.590Z') -# closed_by user -# labels list of labels -# milestone -# assignees list of users -# author user -# assignee user -# user_notes_count -# merge_requests_count -# upvotes -# downvotes -# due_date same date format, or None -# confidential -# discussion_locked -# web_url https URL to issue's page -# time_stats -# task_completion_status -# has_tasks -# _links -# notes -# award_emoji -# project -# subscribed - - -if __name__ == '__main__': - git = gitlab.Gitlab(Config.gitlab_url, private_token=Config.gitlab_api_key) - sample_project = get_project_by_id(git, '5484') - student = get_user_by_id(git, sample_project.creator_id) - print(f'{student.name} forked repo at {sample_project.created_at}') - print('getting a user, by name') - print(get_user_by_name(git, 'bohn')) - print('getting a user by user ID and printing only the user\'s name') - print(get_user_by_id(git, 519).name) - print('getting a project by its namespace/name') - print(get_project_by_path(git, 'csce_361/sandbox/HelloWorld')) - print('getting a project by project ID and printing only the project\'s description') - print(get_project_by_id(git, 5220).description) - print('getting a group by name') - print(git.groups.get('csce_361').name) - name = git.groups.get('csce_361/sandbox').full_path - gid = git.groups.get('csce_361/sandbox').id - print(f'{name}\t{gid}') - print('getting a group by group ID') - print(get_projects_by_group(git, 1946)[0]) - print('getting a list of projects that match a keyword and printing the first project in the list') - print(get_projects_by_keyword(git, "Homework")[0]) - print('getting a list of projects in a group (by group ID) and printing the second project in the list') - print(get_projects_by_group(git, 1937)[1]) - print('getting a list of project members (has only inherited members)') - print(get_project_by_id(git, 5220).members.list()) - print('getting a list of project members, including inherited members') - print(get_project_by_id(git, 5220).members.all(all=True)) - print('getting a list of project members (has assigned members), printing the third\'s name') - print(get_project_by_id(git, 5176).members.list()[2].name) - print('getting a list of issues and printing the first') - print(get_issues(get_project_by_id(git, 5215))[0]) diff --git a/old-automation/01-clone.py b/old-automation/01-clone.py deleted file mode 100644 index 52f3b2b..0000000 --- a/old-automation/01-clone.py +++ /dev/null @@ -1,74 +0,0 @@ -import subprocess -from gitlab import Gitlab -from config import Config -import gitlab_functions - - -class_start_date = '2019-08' - -message = [ - 'Human-readable names limited by students\' creation of human-readable names.', - 'You will need to add students who did not create a homework repository', - 'before the due date, who misspelled the repository\'s name,', - 'or who created a repository in a previous semester.' -] - - -def get_projects(git_server): - retrieved_projects = gitlab_functions.get_projects_by_keyword(git_server, 'csce361-homework') - projects = len(retrieved_projects) - print(f'retrieved {projects} projects') - retrieved_projects = list(filter(lambda p: p.created_at.startswith(class_start_date), retrieved_projects)) - projects = len(retrieved_projects) - print(f'after culling, there are {projects} projects') - return retrieved_projects - - -def create_csv(git_server, projects, filename): - file = open(filename, 'x') - file.write('Student,NUID,Gitlab Username,Canvas Username\n') - for project in projects: - student = gitlab_functions.get_user_by_id(git_server, project.creator_id) - file.write(f'{student.name},unknown,{student.username},unknown\n') - file.close() - print('CSV file for students and their usernames has been started.') - print(message[1]) - print(message[2]) - print(message[3]) - - -def create_bash_cloner(git_server, projects, filename): - file = open(filename, 'x') - file.write('#!/bin/bash\n\n') - file.write('# Auto-generated clone script.\n') - file.write(f'# {message[0]}\n') - file.write(f'# {message[1]}\n') - file.write(f'# {message[2]}\n') - file.write(f'# {message[3]}\n\n') - for project in projects: - repo_url = project.ssh_url_to_repo - student = gitlab_functions.get_user_by_id(git_server, project.creator_id).name.replace(' ', '_') - file.write(f'git clone {repo_url} {student}\n') - file.close() - subprocess.call(['chmod', '+x', filename]) - print('Bash script created to provide to TAs so they can clone homework repositories.') - print(message[0]) - print(message[1]) - print(message[2]) - print(message[3]) - - -def clone_repositories(git_server, projects): - subprocess.call(['mkdir', 'homework']) - for project in projects: - repo_url = project.ssh_url_to_repo - student = gitlab_functions.get_user_by_id(git_server, project.creator_id).name.replace(' ', '_') - subprocess.call(['git', 'clone', repo_url, f'homework/{student}']) - - -if __name__ == '__main__': - git = Gitlab(Config.gitlab_url, private_token=Config.gitlab_api_key) - student_repositories = get_projects(git) - create_csv(git, student_repositories, f'{class_start_date}.csv') - create_bash_cloner(git, student_repositories, '01-clone.sh') - clone_repositories(git, student_repositories) diff --git a/old-automation/05-extract_teams.py b/old-automation/05-extract_teams.py deleted file mode 100644 index a051ae2..0000000 --- a/old-automation/05-extract_teams.py +++ /dev/null @@ -1,34 +0,0 @@ -from canvasapi import Canvas -from config import Config -from course import Course - - -def get_groups(): - canvas = Canvas(Config.canvas_url, Config.canvas_api_key) - course = canvas.get_course(Course.canvas_course_id) - group_categories = course.get_group_categories()[0] # right now, there should just be the one - return group_categories.get_groups() - - -def print_teams(groups): - print('Teams for Pair Assignment 05 (whitebox testing)') - print() - for group in groups: - users = group.get_users(include=['email']) - print(f'{group.name}:\t{users[0].name} <{users[0].email}>, {users[1].name} <{users[1].email}>') - # we can pull this off because there are 2n students - - -def write_teams(groups, filename): - file = open(filename, 'x') - file.write('Teams for Pair Assignment 05 (whitebox testing)\n') - file.write('\n') - for group in groups: - users = group.get_users(include=['email']) - file.write(f'{group.name}:\t{users[0].name} <{users[0].email}>, {users[1].name} <{users[1].email}>\n') - file.close() - - -if __name__ == '__main__': - # print_teams(get_groups()) - write_teams(get_groups(), '05teams.txt') diff --git a/old-automation/1195/01-clone-reset.sh b/old-automation/1195/01-clone-reset.sh deleted file mode 100755 index f26c89f..0000000 --- a/old-automation/1195/01-clone-reset.sh +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/sh - -## Sets up grading directory, clones homework repositories, displays required contents - - -### Set up grading directory (which should be .#gitignore'd) -mkdir ../grading -mkdir ../grading/homework - - -### Clone homework repositories -cd ../grading/homework -git clone git@git.unl.edu:rubenag025/csce361-homework.git Aguilar_Ruben -git clone git@git.unl.edu:ecewalt/csce361-homework.git Ewalt_Emily -git clone git@git.unl.edu:forbesjon2/csce361-homework.git Forbes_Jonathan -git clone git@git.unl.edu:jackgoeden/csce361-homework.git Goeden_Jack -git clone git@git.unl.edu:zzamzang306/csce361-homework.git Kim_Changsu -git clone git@git.unl.edu:zkou/csce361-homework.git Kou_Zihan -git clone git@git.unl.edu:dommai1007/csce361-homework.git Mai_Dominic -git clone git@git.unl.edu:fatima.mohammed/csce361-homework.git Mohammed_Fatima -#git clone XXX Pekarek_Kyle -git clone git@git.unl.edu:jreyes-cortes/csce361-homework.git Reyes-Cortes_Jesse -git clone git@git.unl.edu:brhoadarmer/cse361-homework.git Rhoadarmer_Brennan -git clone git@git.unl.edu:sshaikh/csce361-homework.git Shaikh_Suhaib -git clone git@git.unl.edu:beibei1030/csce361-homework.git Xiong_Beibei -git clone git@git.unl.edu:szhao16/csce361-homework.git Zhao_Shichen -git clone git@git.unl.edu:bojun/csce361-homework.git Zhong_Bojun - - # Dropped out of the course -#git clone XXX Heller_Travis - - -### Revert repositories to due date -for dir in *; do - cd $dir - git revert --no-commit 'master@{2019-06-12 16:35}' - cd .. -done - - -### Facilitate grading -for dir in *; do - echo $dir - cd $dir - sshurl=`git config --get remote.origin.url` - trim1=${sshurl#'git@git.unl.edu:'} - trim2=${trim1%'.git'} - httpurl='https://git.unl.edu/'$trim2 - echo "Go to " $httpurl " to check for private repository with Maintainer access" - echo `ls .gitignore README.md` " are present" - read -n 1 -p "Press any key to continue " ignoredinput - echo - echo - echo ".gitignore" - echo "----------" - more .gitignore - echo - echo "README.md" - echo "---------" - more README.md - echo - echo - cd .. -done - - -### Undo reverts -for dir in *; do - cd $dir - git revert --abort - cd .. -done -cd ../scripts - diff --git a/old-automation/1195/03-clone.sh b/old-automation/1195/03-clone.sh deleted file mode 100755 index 34a06f0..0000000 --- a/old-automation/1195/03-clone.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - - -### Clone calculator repositories -### Assumed to be called from the grading directory - -mkdir calculator -cd calculator - -git clone git@git.unl.edu:rubenag025/calculator.git Aguilar_Ruben -git clone git@git.unl.edu:ecewalt/calculator.git Ewalt_Emily -git clone git@git.unl.edu:forbesjon2/calculator.git Forbes_Jonathan -git clone git@git.unl.edu:jackgoeden/calculator.git Goeden_Jack -git clone git@git.unl.edu:zzamzang306/calculator.git Kim_Changsu -git clone git@git.unl.edu:zkou/calculator.git Kou_Zihan -git clone git@git.unl.edu:dommai1007/calculator.git Mai_Dominic -git clone git@git.unl.edu:fatima.mohammed/calculator.git Mohammed_Fatima -git clone git@git.unl.edu:jreyes-cortes/calculator.git Reyes-Cortes_Jesse -git clone git@git.unl.edu:brhoadarmer/calculator.git Rhoadarmer_Brennan -git clone git@git.unl.edu:sshaikh/calculator.git Shaikh_Suhaib -git clone git@git.unl.edu:beibei1030/calculator.git Xiong_Beibei -git clone git@git.unl.edu:szhao16/calculator.git Zhao_Shichen -git clone git@git.unl.edu:bojun/calculator.git Zhong_Bojun - diff --git a/old-automation/1195/03-reset.sh b/old-automation/1195/03-reset.sh deleted file mode 100755 index 360551e..0000000 --- a/old-automation/1195/03-reset.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - - -### Undo reverts -### Assumes to be called in the directory immediately above the student repos -### (e.g., ....../grading/homework) and there are only repos in that directory - - -for dir in *; do - cd $dir - git revert --abort - cd .. -done - diff --git a/old-automation/1195/03-revert.sh b/old-automation/1195/03-revert.sh deleted file mode 100755 index 6a45e2b..0000000 --- a/old-automation/1195/03-revert.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - - -### Revert repositories to due date -### Assumes to be called in the directory immediately above the student repos -### (e.g., ....../grading/homework) and there are only repos in that directory - - -for dir in *; do - cd $dir - git pull - git revert --no-commit 'master@{2019-06-17 16:35}' - cd .. -done - diff --git a/old-automation/1195/09-clone.sh b/old-automation/1195/09-clone.sh deleted file mode 100755 index 4de2a80..0000000 --- a/old-automation/1195/09-clone.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - - -### Clone car rental system repositories -### Assumed to be called from the grading directory - -mkdir car_rental_system -cd car_rental_system - -git clone git@git.unl.edu:zzamzang306/car_rental_system.git Team01 -git clone git@git.unl.edu:beibei1030/car_rental_system.git Team02 -git clone git@git.unl.edu:rubenag025/car_rental_system.git Team03 -git clone git@git.unl.edu:ecewalt/car_rental_system.git Team04 -git clone git@git.unl.edu:bojun/car_rental_system.git Team05-1 -git clone git@git.unl.edu:fatima.mohammed/car_rental_system.git Team05-2 -git clone git@git.unl.edu:szhao16/car_rental_system.git Team06 -git clone git@git.unl.edu:jackgoeden/car_rental_system.git Team07 - -cd .. - -#git clone git@git.unl.edu:forbesjon2/car_rental_system.git Forbes_Jonathan -#git clone git@git.unl.edu:zkou/car_rental_system.git Kou_Zihan -#git clone git@git.unl.edu:dommai1007/car_rental_system.git Mai_Dominic -#git clone git@git.unl.edu:jreyes-cortes/car_rental_system.git Reyes-Cortes_Jesse -#git clone git@git.unl.edu:brhoadarmer/car_rental_system.git Rhoadarmer_Brennan -#git clone git@git.unl.edu:sshaikh/car_rental_system.git Shaikh_Suhaib - diff --git a/old-automation/1195/12-clone.sh b/old-automation/1195/12-clone.sh deleted file mode 100755 index 947e3b6..0000000 --- a/old-automation/1195/12-clone.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - - -### Clone car rental system repositories for code review & repair -### Assumed to be called from the grading directory - -mkdir code_review -cd code_review - -git clone git@git.unl.edu:rubenag025/car_rental_system.git Aguilar_Ruben -git clone git@git.unl.edu:ecewalt/car_rental_system.git Ewalt_Emily -git clone git@git.unl.edu:forbesjon2/car_rental_system.git Forbes_Jonathan -git clone git@git.unl.edu:jackgoeden/car_rental_system.git Goeden_Jack -git clone git@git.unl.edu:zzamzang306/car_rental_system.git Kim_Changsu -git clone git@git.unl.edu:zkou/car_rental_system.git Kou_Zihan -git clone git@git.unl.edu:dommai1007/car_rental_system.git Mai_Dominic -git clone git@git.unl.edu:fatima.mohammed/car_rental_system.git Mohammed_Fatima -git clone git@git.unl.edu:jreyes-cortes/car_rental_system.git Reyes-Cortes_Jesse -git clone git@git.unl.edu:brhoadarmer/car_rental_system.git Rhoadarmer_Brennan -git clone git@git.unl.edu:sshaikh/car_rental_system.git Shaikh_Suhaib -git clone git@git.unl.edu:beibei1030/car_rental_system.git Xiong_Beibei -git clone git@git.unl.edu:szhao16/car_rental_system.git Zhao_Shichen -git clone git@git.unl.edu:bojun/car_rental_system.git Zhong_Bojun - -cd .. - diff --git a/old-automation/1195/28-clone.sh b/old-automation/1195/28-clone.sh deleted file mode 100755 index 14019f4..0000000 --- a/old-automation/1195/28-clone.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - - -### Clone tradeshow service system repositories -### Assumed to be called from the grading directory - -mkdir tradeshow_service_system -cd tradeshow_service_system - -git clone git@git.unl.edu:dommai1007/tradeshow_service_system.git Team01 -git clone git@git.unl.edu:forbesjon2/tradeshow_service_system.git Team02 -git clone git@git.unl.edu:fatima.mohammed/tradeshow_service_system.git Team03 -git clone git@git.unl.edu:beibei1030/tradeshow_service_system.git Team04 -git clone git@git.unl.edu:zzamzang306/tradeshow_service_system.git Team05 -git clone git@git.unl.edu:jreyes-cortes/tradeshow_service_system.git Team06 -git clone git@git.unl.edu:/brhoadarmer/tradeshow_service_system.git Team07 - -cd .. - -#1. Jack Goerden, Dominic Mai -#2. Jonathan Forbes, Shichen Zhao -#3. Ruben Aguilar, Fatima Mohammed -#4. Suhaib Shaikh, Beibei Xiong -#5. Changsu Kim, Bojun Zhong -#6. Zihan Kou, Jesse Reyes-Cortes -#7. Emily Ewalt, Brennan Rhoadarmer - diff --git a/old-automation/README.md b/old-automation/README.md deleted file mode 100644 index 48ae549..0000000 --- a/old-automation/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# Scripts to automate student repository management for CSCE 361 - -- 01-clone.py - - clones students' homework repositories into homework directory - - begins CSV file to match gitlab usernames to canvas usernames - - creates a bash script to clone repositories, to give to TAs - diff --git a/old-automation/1195/count_changes.c b/old-automation/count_changes.c similarity index 100% rename from old-automation/1195/count_changes.c rename to old-automation/count_changes.c diff --git a/old-automation/1195/getAllContributions.sh b/old-automation/getAllContributions.sh similarity index 100% rename from old-automation/1195/getAllContributions.sh rename to old-automation/getAllContributions.sh diff --git a/old-automation/1195/getContributions.sh b/old-automation/getContributions.sh similarity index 100% rename from old-automation/1195/getContributions.sh rename to old-automation/getContributions.sh diff --git a/old-automation/1195/reset.sh b/old-automation/reset.sh similarity index 100% rename from old-automation/1195/reset.sh rename to old-automation/reset.sh diff --git a/old-automation/1195/rollback.sh b/old-automation/rollback.sh similarity index 100% rename from old-automation/1195/rollback.sh rename to old-automation/rollback.sh diff --git a/old-automation/1195/update.sh b/old-automation/update.sh similarity index 100% rename from old-automation/1195/update.sh rename to old-automation/update.sh -- GitLab