This is a collection of scripts developed for use in administrating GitHub Classroom assignments. These scripts are under constant development. I will try and update this README with documentation once the scripts reach a robust working state.
Python 3 command line utility to add a file to the master branch of every repository in an assignment and push those repositories.
There must exist a directory containing every repository for a given assignment and only those repositories.
There must exist a file on user's local machine that is to be added to each repository.
This utility requires 2 command line arguments:
- The absolute path to the directory containing each of your repositories.
- The absolute path to the file that needs to be added.
Example: python3 addFile.py /Users/Username/Documents/COMP167/Program2-StudentRepos /Users/Username/Downloads/UpdatedAssignment.md
Python 3 command line utility to clone student repositories created using GitHub Classroom.
There must exist a GitHub classroom assignment.
The user must have a plain text file (.txt or .csv) with the GitHub usernames of all students separated by new lines.
This utility requires 3 command line arguments:
- The name of the GitHub organization that hosts the classroom, as it appears in a GitHub URL. (i.e. My Code Classroom would be entered as my-code-classroom).
- The assignment name as it appears in a GitHub URL. (Coding Assignment 1 would be coding-assignment-1).
- The local path to the .csv or .txt file that holds GitHub usernames.
Example: python3 CloneAssignment.py my-class-organization assignment-1-variables ~/Documents/classroster.txt
NOTE: This script does not yet handle multiple branches in an assignment
Python3 command line utility to clone all repositories from an assignment created using GitHub Classroom and prepare them for evaluation using MOSS plagiarism detection.
The goal of this script is to transfer source files from and IDE project structure to the required MOSS file structure.
| - solution_directory
| - student1
| - classA.java
| - classB.java
| - ...
| - student2
| - ...
| - student3
| - ...
| - ...
There must exist a GitHub classroom assignment.
The user must have a plain text file (.txt or .csv) with the GitHub usernames of all students separated by new lines.
There must exist an empty directory that will hold GitHub repositories and the MOSS directory structure.
The user must have the CloneAssignment.py script from this repository on their machine.
This script requires 5 command line arguments:
- The name of the GitHub organization that hosts the classroom, as it appears in a GitHub URL. (i.e. My Code Classroom would be entered as my-code-classroom).
- The assignment name as it appears in a GitHub URL. (Coding Assignment 1 would be coding-assignment-1).
- The local path to the .csv or .txt file that holds GitHub usernames.
- The local path to the users copy of the CloneAssignment.py script.
- The local path to an empty directory that will hold all program output.
Example: python3 MossSetup.py my-class-organization assignment-1-variables ~/Documents/classroster.txt ~/Downloads/CloneAssignment.py ~/Desktop/MyAssignmentToEvaluate