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.

Organization::Creator.perform

Public: Create an Organization.

users     - An Array of Users that will own the organization.
github_id - The Integer GitHub id.

Examples

  Organization::Creator.perform([User.first], github_id: 12345)

Returns an Organization::Creator::Result.

Source | Google | Stack overflow

Edit

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

cd classroom

open app/models/organization/creator.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Organization--Creator-perform-for-pr


# Commit to git

git add app/models/organization/creator.rbgit commit -m "better docs for Organization::Creator.perform"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Organization--Creator-perform-for-pr

hub pull-request


# Celebrate!