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_issue

Public: Add issues to the GitHub repository.

title    - The title of the issue.
body     - The body of the issue.

options - optional params
         :assignee - User login.
         :milestone - Milestone number.
         :labels - List of comma separated Label names.

Returns the newly created issue, or raises a GitHub::Error.

Source | Google | Stack overflow

Edit

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

cd classroom

open app/models/github_repository.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-GitHubRepository-create_issue-for-pr


# Commit to git

git add app/models/github_repository.rbgit commit -m "better docs for GitHubRepository#create_issue"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-GitHubRepository-create_issue-for-pr

hub pull-request


# Celebrate!