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.

GitHub::Token.expand_scopes

Having a scope like 'user' is actually read:user, user:email and user:follow
This method expands these collection scopes to make checking which scopes we have more simple

Source | Google | Stack overflow

Edit

git clone [email protected]:education/classroom.git

cd classroom

open lib/github/token.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-GitHub--Token-expand_scopes-for-pr


# Commit to git

git add lib/github/token.rbgit commit -m "better docs for GitHub::Token.expand_scopes"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-GitHub--Token-expand_scopes-for-pr

hub pull-request


# Celebrate!