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.
GitHubRepository#create_label
Public: Add a label to a GitHub repository. label - The String name of the label. color - (defaults to: "ffffff") A color, in hex, without the leading # Returns a Hash of the label, or raises a GitHub::Error.
Edit
git clone [email protected]:education/classroom.git
cd classroom
open app/models/github_repository.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-GitHubRepository-create_label-for-pr
# Commit to gitgit add app/models/github_repository.rbgit commit -m "better docs for GitHubRepository#create_label"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-GitHubRepository-create_label-for-pr
hub pull-request
# Celebrate!