Closed stevebrownlee closed 3 months ago
To add student - e.g. janaismail - here's the example curl
curl -L \
-X PUT \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/NSS-Day-Cohort-71/house-of-hummus-Jana-Ismail/collaborators/Jana-Ismail \
-d '{"permission":"write"}'
Then use the Slack API to send a message to the student with the URL of the repo and name of assessment.
Button handler is in StudentInfo.js
on line 104
For generating repo from template
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/Nashville-Software-School-Assessments/house-of-hummus-api-assessment/generate \
-d '{"owner":"NSS-Day-Cohort-71","name":"house-of-hummus-${github_handle}","description":"Your assessment repository","include_all_branches":false,"private":false}'