githubtraining / githubtraining/training-manual

Add option to "recreate all" for conflict and games repo creation

Open
#302 0 comments 1 reaction 1 assignee Claimed by @ericalloyd View on GitHub
enhancement
Dominant language
Shell
Stars
340
Forks
375
PR merge metrics
No merged PRs in 30d

Description

When running the script to create `conflict-practice` and `github-games` repos for students based on the day 1 repo collaborator list, we should have an option to recreate repos for **all** students without stopping after each one to ask for input:

```
Is it OK to delete and recreate? [y/N]
```

Example:
```
⇒ script/teach-class --recreate-all
```

An alternative would be to add additional options to the selection menu:

```
What would you like to do? (Just the number please)
99: Exit
0: Confirm setup
1: Create a new caption-this class repository
2: Add collabs and create files (also makes the repo private)
3: Grade the day 1 repo
4: Create conflict repos for each student
4a: Recreate all existing conflict repos for all students
5: Grade the conflict repos
6: Create the github-games repos for each student
6a: Recreate all existing github-games repos for all students
7: Delete student repos for a specific class
8: Grade client
6a
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.