{"action":"created","comment":{"url":"https://api.github.com/repos/YaleSTC/vesta/pulls/comments/106332263","pull_request_review_id":27248287,"id":106332263,"diff_hunk":"@@ -0,0 +1,53 @@\n+# frozen_string_literal: true\n+#\n+# Service objects for group leaders to select a suite for their group.\n+class GroupSuiteSelector < SuiteSelector\n+  # Initialize a new GroupSuiteSelector\n+  #\n+  # @param group [Group] the group to assign the suite to\n+  # @param suite_id [Integer] the suite id to assign to the group\n+  # @param mailer [Mailer] the mailer to use to email next groups\n+  def initialize(group:, suite_id:, mailer: StudentMailer)\n+    @group = group\n+    @suite_id = suite_id\n+    @errors = []\n+    @mailer = mailer\n+  end\n+\n+  # Select / assign a suite to a group. Checks to make sure that the grou does","path":"app/services/group_suite_selector.rb","position":17,"original_position":17,"commit_id":"dadf2788f1b663c3c75b71e3aad5c4fa5606a14d","original_commit_id":"dadf2788f1b663c3c75b71e3aad5c4fa5606a14d","user":{"login":"orenyk","id":901808,"avatar_url":"https://avatars2.githubusercontent.com/u/901808?v=3","gravatar_id":"","url":"https://api.github.com/users/orenyk","html_url":"https://github.com/orenyk","followers_url":"https://api.github.com/users/orenyk/followers","following_url":"https://api.github.com/users/orenyk/following{/other_user}","gists_url":"https://api.github.com/users/orenyk/gists{/gist_id}","starred_url":"https://api.github.com/users/orenyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orenyk/subscriptions","organizations_url":"https://api.github.com/users/orenyk/orgs","repos_url":"https://api.github.com/users/orenyk/repos","events_url":"https://api.github.com/users/orenyk/events{/privacy}","received_events_url":"https://api.github.com/users/orenyk/received_events","type":"User","site_admin":false},"body":"typo, `grou`","created_at":"2017-03-16T03:25:35Z","updated_at":"2017-03-16T03:39:10Z","html_url":"https://github.com/YaleSTC/vesta/pull/390#discussion_r106332263","pull_request_url":"https://api.github.com/repos/YaleSTC/vesta/pulls/390","_links":{"self":{"href":"https://api.github.com/repos/YaleSTC/vesta/pulls/comments/106332263"},"html":{"href":"https://github.com/YaleSTC/vesta/pull/390#discussion_r106332263"},"pull_request":{"href":"https://api.github.com/repos/YaleSTC/vesta/pulls/390"}}},"pull_request":{"url":"https://api.github.com/repos/YaleSTC/vesta/pulls/390","id":110980044,"html_url":"https://github.com/YaleSTC/vesta/pull/390","diff_url":"https://github.com/YaleSTC/vesta/pull/390.diff","patch_url":"https://github.com/YaleSTC/vesta/pull/390.patch","issue_url":"https://api.github.com/repos/YaleSTC/vesta/issues/390","number":390,"state":"open","locked":false,"title":"[210] Add ability for leaders to select suites","user":{"login":"esoterik","id":2908224,"avatar_url":"https://avatars0.githubusercontent.com/u/2908224?v=3","gravatar_id":"","url":"https://api.github.com/users/esoterik","html_url":"https://github.com/esoterik","followers_url":"https://api.github.com/users/esoterik/followers","following_url":"https://api.github.com/users/esoterik/following{/other_user}","gists_url":"https://api.github.com/users/esoterik/gists{/gist_id}","starred_url":"https://api.github.com/users/esoterik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esoterik/subscriptions","organizations_url":"https://api.github.com/users/esoterik/orgs","repos_url":"https://api.github.com/users/esoterik/repos","events_url":"https://api.github.com/users/esoterik/events{/privacy}","received_events_url":"https://api.github.com/users/esoterik/received_events","type":"User","site_admin":false},"body":"Resolves #210\r\n  - Add GroupSuiteSelector","created_at":"2017-03-16T02:11:08Z","updated_at":"2017-03-16T03:39:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"880de2659c17ab0baf0d250014f33a4970693134","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/YaleSTC/vesta/pulls/390/commits","review_comments_url":"https://api.github.com/repos/YaleSTC/vesta/pulls/390/comments","review_comment_url":"https://api.github.com/repos/YaleSTC/vesta/pulls/comments{/number}","comments_url":"https://api.github.com/repos/YaleSTC/vesta/issues/390/comments","statuses_url":"https://api.github.com/repos/YaleSTC/vesta/statuses/dadf2788f1b663c3c75b71e3aad5c4fa5606a14d","head":{"label":"YaleSTC:210_leader_suite_selection","ref":"210_leader_suite_selection","sha":"dadf2788f1b663c3c75b71e3aad5c4fa5606a14d","user":{"login":"YaleSTC","id":106094,"avatar_url":"https://avatars1.githubusercontent.com/u/106094?v=3","gravatar_id":"","url":"https://api.github.com/users/YaleSTC","html_url":"https://github.com/YaleSTC","followers_url":"https://api.github.com/users/YaleSTC/followers","following_url":"https://api.github.com/users/YaleSTC/following{/other_user}","gists_url":"https://api.github.com/users/YaleSTC/gists{/gist_id}","starred_url":"https://api.github.com/users/YaleSTC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YaleSTC/subscriptions","organizations_url":"https://api.github.com/users/YaleSTC/orgs","repos_url":"https://api.github.com/users/YaleSTC/repos","events_url":"https://api.github.com/users/YaleSTC/events{/privacy}","received_events_url":"https://api.github.com/users/YaleSTC/received_events","type":"Organization","site_admin":false},"repo":{"id":69689991,"name":"vesta","full_name":"YaleSTC/vesta","owner":{"login":"YaleSTC","id":106094,"avatar_url":"https://avatars1.githubusercontent.com/u/106094?v=3","gravatar_id":"","url":"https://api.github.com/users/YaleSTC","html_url":"https://github.com/YaleSTC","followers_url":"https://api.github.com/users/YaleSTC/followers","following_url":"https://api.github.com/users/YaleSTC/following{/other_user}","gists_url":"https://api.github.com/users/YaleSTC/gists{/gist_id}","starred_url":"https://api.github.com/users/YaleSTC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YaleSTC/subscriptions","organizations_url":"https://api.github.com/users/YaleSTC/orgs","repos_url":"https://api.github.com/users/YaleSTC/repos","events_url":"https://api.github.com/users/YaleSTC/events{/privacy}","received_events_url":"https://api.github.com/users/YaleSTC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/YaleSTC/vesta","description":"Application for housing lottery / room draw","fork":false,"url":"https://api.github.com/repos/YaleSTC/vesta","forks_url":"https://api.github.com/repos/YaleSTC/vesta/forks","keys_url":"https://api.github.com/repos/YaleSTC/vesta/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YaleSTC/vesta/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YaleSTC/vesta/teams","hooks_url":"https://api.github.com/repos/YaleSTC/vesta/hooks","issue_events_url":"https://api.github.com/repos/YaleSTC/vesta/issues/events{/number}","events_url":"https://api.github.com/repos/YaleSTC/vesta/events","assignees_url":"https://api.github.com/repos/YaleSTC/vesta/assignees{/user}","branches_url":"https://api.github.com/repos/YaleSTC/vesta/branches{/branch}","tags_url":"https://api.github.com/repos/YaleSTC/vesta/tags","blobs_url":"https://api.github.com/repos/YaleSTC/vesta/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YaleSTC/vesta/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YaleSTC/vesta/git/refs{/sha}","trees_url":"https://api.github.com/repos/YaleSTC/vesta/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YaleSTC/vesta/statuses/{sha}","languages_url":"https://api.github.com/repos/YaleSTC/vesta/languages","stargazers_url":"https://api.github.com/repos/YaleSTC/vesta/stargazers","contributors_url":"https://api.github.com/repos/YaleSTC/vesta/contributors","subscribers_url":"https://api.github.com/repos/YaleSTC/vesta/subscribers","subscription_url":"https://api.github.com/repos/YaleSTC/vesta/subscription","commits_url":"https://api.github.com/repos/YaleSTC/vesta/commits{/sha}","git_commits_url":"https://api.github.com/repos/YaleSTC/vesta/git/commits{/sha}","comments_url":"https://api.github.com/repos/YaleSTC/vesta/comments{/number}","issue_comment_url":"https://api.github.com/repos/YaleSTC/vesta/issues/comments{/number}","contents_url":"https://api.github.com/repos/YaleSTC/vesta/contents/{+path}","compare_url":"https://api.github.com/repos/YaleSTC/vesta/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YaleSTC/vesta/merges","archive_url":"https://api.github.com/repos/YaleSTC/vesta/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YaleSTC/vesta/downloads","issues_url":"https://api.github.com/repos/YaleSTC/vesta/issues{/number}","pulls_url":"https://api.github.com/repos/YaleSTC/vesta/pulls{/number}","milestones_url":"https://api.github.com/repos/YaleSTC/vesta/milestones{/number}","notifications_url":"https://api.github.com/repos/YaleSTC/vesta/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YaleSTC/vesta/labels{/name}","releases_url":"https://api.github.com/repos/YaleSTC/vesta/releases{/id}","deployments_url":"https://api.github.com/repos/YaleSTC/vesta/deployments","created_at":"2016-09-30T18:06:33Z","updated_at":"2016-10-30T20:14:34Z","pushed_at":"2017-03-16T02:42:52Z","git_url":"git://github.com/YaleSTC/vesta.git","ssh_url":"git@github.com:YaleSTC/vesta.git","clone_url":"https://github.com/YaleSTC/vesta.git","svn_url":"https://github.com/YaleSTC/vesta","homepage":null,"size":1620,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":136,"forks":0,"open_issues":136,"watchers":2,"default_branch":"master"}},"base":{"label":"YaleSTC:master","ref":"master","sha":"8bb542f12441ddc61c2cee59a333226794a01d9b","user":{"login":"YaleSTC","id":106094,"avatar_url":"https://avatars1.githubusercontent.com/u/106094?v=3","gravatar_id":"","url":"https://api.github.com/users/YaleSTC","html_url":"https://github.com/YaleSTC","followers_url":"https://api.github.com/users/YaleSTC/followers","following_url":"https://api.github.com/users/YaleSTC/following{/other_user}","gists_url":"https://api.github.com/users/YaleSTC/gists{/gist_id}","starred_url":"https://api.github.com/users/YaleSTC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YaleSTC/subscriptions","organizations_url":"https://api.github.com/users/YaleSTC/orgs","repos_url":"https://api.github.com/users/YaleSTC/repos","events_url":"https://api.github.com/users/YaleSTC/events{/privacy}","received_events_url":"https://api.github.com/users/YaleSTC/received_events","type":"Organization","site_admin":false},"repo":{"id":69689991,"name":"vesta","full_name":"YaleSTC/vesta","owner":{"login":"YaleSTC","id":106094,"avatar_url":"https://avatars1.githubusercontent.com/u/106094?v=3","gravatar_id":"","url":"https://api.github.com/users/YaleSTC","html_url":"https://github.com/YaleSTC","followers_url":"https://api.github.com/users/YaleSTC/followers","following_url":"https://api.github.com/users/YaleSTC/following{/other_user}","gists_url":"https://api.github.com/users/YaleSTC/gists{/gist_id}","starred_url":"https://api.github.com/users/YaleSTC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YaleSTC/subscriptions","organizations_url":"https://api.github.com/users/YaleSTC/orgs","repos_url":"https://api.github.com/users/YaleSTC/repos","events_url":"https://api.github.com/users/YaleSTC/events{/privacy}","received_events_url":"https://api.github.com/users/YaleSTC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/YaleSTC/vesta","description":"Application for housing lottery / room draw","fork":false,"url":"https://api.github.com/repos/YaleSTC/vesta","forks_url":"https://api.github.com/repos/YaleSTC/vesta/forks","keys_url":"https://api.github.com/repos/YaleSTC/vesta/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YaleSTC/vesta/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YaleSTC/vesta/teams","hooks_url":"https://api.github.com/repos/YaleSTC/vesta/hooks","issue_events_url":"https://api.github.com/repos/YaleSTC/vesta/issues/events{/number}","events_url":"https://api.github.com/repos/YaleSTC/vesta/events","assignees_url":"https://api.github.com/repos/YaleSTC/vesta/assignees{/user}","branches_url":"https://api.github.com/repos/YaleSTC/vesta/branches{/branch}","tags_url":"https://api.github.com/repos/YaleSTC/vesta/tags","blobs_url":"https://api.github.com/repos/YaleSTC/vesta/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YaleSTC/vesta/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YaleSTC/vesta/git/refs{/sha}","trees_url":"https://api.github.com/repos/YaleSTC/vesta/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YaleSTC/vesta/statuses/{sha}","languages_url":"https://api.github.com/repos/YaleSTC/vesta/languages","stargazers_url":"https://api.github.com/repos/YaleSTC/vesta/stargazers","contributors_url":"https://api.github.com/repos/YaleSTC/vesta/contributors","subscribers_url":"https://api.github.com/repos/YaleSTC/vesta/subscribers","subscription_url":"https://api.github.com/repos/YaleSTC/vesta/subscription","commits_url":"https://api.github.com/repos/YaleSTC/vesta/commits{/sha}","git_commits_url":"https://api.github.com/repos/YaleSTC/vesta/git/commits{/sha}","comments_url":"https://api.github.com/repos/YaleSTC/vesta/comments{/number}","issue_comment_url":"https://api.github.com/repos/YaleSTC/vesta/issues/comments{/number}","contents_url":"https://api.github.com/repos/YaleSTC/vesta/contents/{+path}","compare_url":"https://api.github.com/repos/YaleSTC/vesta/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YaleSTC/vesta/merges","archive_url":"https://api.github.com/repos/YaleSTC/vesta/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YaleSTC/vesta/downloads","issues_url":"https://api.github.com/repos/YaleSTC/vesta/issues{/number}","pulls_url":"https://api.github.com/repos/YaleSTC/vesta/pulls{/number}","milestones_url":"https://api.github.com/repos/YaleSTC/vesta/milestones{/number}","notifications_url":"https://api.github.com/repos/YaleSTC/vesta/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YaleSTC/vesta/labels{/name}","releases_url":"https://api.github.com/repos/YaleSTC/vesta/releases{/id}","deployments_url":"https://api.github.com/repos/YaleSTC/vesta/deployments","created_at":"2016-09-30T18:06:33Z","updated_at":"2016-10-30T20:14:34Z","pushed_at":"2017-03-16T02:42:52Z","git_url":"git://github.com/YaleSTC/vesta.git","ssh_url":"git@github.com:YaleSTC/vesta.git","clone_url":"https://github.com/YaleSTC/vesta.git","svn_url":"https://github.com/YaleSTC/vesta","homepage":null,"size":1620,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":136,"forks":0,"open_issues":136,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/YaleSTC/vesta/pulls/390"},"html":{"href":"https://github.com/YaleSTC/vesta/pull/390"},"issue":{"href":"https://api.github.com/repos/YaleSTC/vesta/issues/390"},"comments":{"href":"https://api.github.com/repos/YaleSTC/vesta/issues/390/comments"},"review_comments":{"href":"https://api.github.com/repos/YaleSTC/vesta/pulls/390/comments"},"review_comment":{"href":"https://api.github.com/repos/YaleSTC/vesta/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/YaleSTC/vesta/pulls/390/commits"},"statuses":{"href":"https://api.github.com/repos/YaleSTC/vesta/statuses/dadf2788f1b663c3c75b71e3aad5c4fa5606a14d"}}}}
{"actor":{"display_login":"orenyk"}}