A simple NodeJS application that takes a repo and distributes it to a student list on their repos. There are certain requirements before this script will work:
- Students must use the exact same repo-name as the source repo.
- Students must add your user as contribuitor on your repo.
- You must be a contribuitor on the assignment repo assuming it is private.
- Clone the repo
git clone https://github.com/hollisjamison/assignment-push.git
- Move into the repo folder
cd assignment-push
- Install dependecies with npm
npm install
- Create a .env file using the provided DOTENV-example.env
ASSIGNMENT=https://github.com/hollisjamison/repo-name.git
REPONAME=repo-name
USERNAME=hollisjamison@gmail.com
TOKEN=GITHUB-ACCESS-TOKEN
SLACKTOKEN=SLACK-OAUTH-TOKEN
- Customize the .env file by adding your information. Make sure to update the assignment and repo name on each run.
- Edit the studentList.js with an array of the list of your student's GitHub usernames.
- Run the application
npm start