classroom
https://github.com/education/classroom
Ruby
GitHub Classroom automates repository creation and access control, making it easy for teachers to distribute starter code and collect assignments on GitHub.
OrganizationsController#add_current_user_to_organizations
Check if the current user has any organizations with admin privilege, if so add the user to the corresponding classroom automatically.
Edit
git clone [email protected]:education/classroom.git
cd classroom
open app/controllers/organizations_controller.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-OrganizationsController-add_current_user_to_organizations-for-pr
# Commit to gitgit add app/controllers/organizations_controller.rbgit commit -m "better docs for OrganizationsController#add_current_user_to_organizations"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-OrganizationsController-add_current_user_to_organizations-for-pr
hub pull-request
# Celebrate!