Skip to content

Commit

Permalink
edit readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Rowena Foo committed Oct 12, 2021
1 parent 8539e95 commit ff5d4aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions scripts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev/stdinv.json
11 changes: 8 additions & 3 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
This directory contains scripts used in the class by the trainer

## Main.js

This script will take a repository as a template and create a copy in the target organization for each user in the input file.
Input is a JSON array of github user names.
Sample usage:

1. Run `npm -i`
2. Create `dev/stdinv.json` in `/scripts`
3. JSON file is an array of github user names.
4. Run the following command in `/scripts`:

```
echo '["selkins13","chocrates"]' | node main.js --token <Personal Access Token> --org <Target Org> --template <templateOrg/TemplateRepo> --file /dev/stdinv
node main.js --token <Personal Access Token> --org <Target Org> --template <templateOrg/TemplateRepo> --file dev/stdinv.json
```

0 comments on commit ff5d4aa

Please sign in to comment.