Add your new cohort to your GitHub team with only a .txt file of usernames
Requires Node.js v4+ to run.
https://github.com/blog/1509-personal-api-tokens Click 'create your own personal API tokens' hyperlink Click 'Generate a personal access token' hyperlink Write 'Add Users to Team' in Token Decription Check boxes for 'repo', 'admin:org', 'user' Click 'Generate token' Save token in a safe place.
Run the Salesforce report for your cohort, including GitHub usernames.
Open terminal and run the following:
$ git clone <copy and paste from github>
$ cd addGitTeamUsers
$ curl -H "Authorization: token <YOUR LONG TOKEN HERE>" https://api.github.com/orgs/<YOUR BOOTCAMP HERE>/teams?page=2&per_page=100
Scroll through the possible teams and get to get your unique team id number.
Save this number.
Copy and paste the username column into your cohort_ghusername.txt
All usernames should be on their own line.
Open addtoGH.js in your text editor (Sublime). Insert token, team ID, and your own username into the specific <>. Save file.
In the terminal run:
$ node addtoGH.js