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#branch_present?
Public: Checks if the GitHub repository has a given branch. branch - name of the branch to check for Returns true if branch exists, false otherwise
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-branch_present--for-pr
# Commit to gitgit add app/models/github_repository.rbgit commit -m "better docs for GitHubRepository#branch_present?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-GitHubRepository-branch_present--for-pr
hub pull-request
# Celebrate!