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::WebHook.generate_hmac
Public: Generate the [HMAC](https://tools.ietf.org/html/rfc2104)
for the given JSON payload.
payload - A String representing a JSON payload.
Example:
GitHub::WebHook.generate_hmac("{\"login\":\"tarebyte\"}")
# => "fa3d036eb7f341ececf629f5e631e96db778c69e"
Returns the HMAC string.Edit
git clone [email protected]:education/classroom.git
cd classroom
open lib/github/web_hook.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-GitHub--WebHook-generate_hmac-for-pr
# Commit to gitgit add lib/github/web_hook.rbgit commit -m "better docs for GitHub::WebHook.generate_hmac"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-GitHub--WebHook-generate_hmac-for-pr
hub pull-request
# Celebrate!