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#user_with_admin_org_hook_scope
Internal: Find User that has the `admin:org_hook` scope
for creating the organization webhook.
Examples
user_with_admin_org_hook_scope
# => #<User:0x007fd7f0320a30
id: 1,
uid: 564113,
token: "8675309",
created_at: Sun, 20 Nov 2016 16:29:43 UTC +00:00,
updated_at: Tue, 22 Nov 2016 03:46:10 UTC +00:00,
site_admin: true,
last_active_at: Fri, 25 Nov 2016 03:39:54 UTC +00:00>
Returns a User or nil if one could not be found.Edit
git clone [email protected]:education/classroom.git
cd classroom
open app/models/organization/creator.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Organization--Creator-user_with_admin_org_hook_scope-for-pr
# Commit to gitgit add app/models/organization/creator.rbgit commit -m "better docs for Organization::Creator#user_with_admin_org_hook_scope"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Organization--Creator-user_with_admin_org_hook_scope-for-pr
hub pull-request
# Celebrate!