{"action":"created","comment":{"url":"https://api.github.com/repos/education/classroom/pulls/comments/211001484","pull_request_review_id":147341106,"id":211001484,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMTAwMTQ4NA==","diff_hunk":"@@ -122,6 +128,16 @@ def create_group_assignment_repo(selected_group: group, new_group_title: nil)\n   # rubocop:enable Metrics/AbcSize\n   # rubocop:enable MethodLength\n \n+  ## Resource Helpers\n+\n+  def group\n+    repo_access = current_user.repo_accesses.find_by(organization: organization)\n+    return unless repo_access.present? && repo_access.groups.present?\n+","path":"app/controllers/group_assignment_invitations_controller.rb","position":129,"original_position":129,"commit_id":"6e91fb67a241b5b45e246405755a6df978240c49","original_commit_id":"6e91fb67a241b5b45e246405755a6df978240c49","user":{"login":"BenEmdon","id":11095731,"node_id":"MDQ6VXNlcjExMDk1NzMx","avatar_url":"https://avatars0.githubusercontent.com/u/11095731?v=4","gravatar_id":"","url":"https://api.github.com/users/BenEmdon","html_url":"https://github.com/BenEmdon","followers_url":"https://api.github.com/users/BenEmdon/followers","following_url":"https://api.github.com/users/BenEmdon/following{/other_user}","gists_url":"https://api.github.com/users/BenEmdon/gists{/gist_id}","starred_url":"https://api.github.com/users/BenEmdon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenEmdon/subscriptions","organizations_url":"https://api.github.com/users/BenEmdon/orgs","repos_url":"https://api.github.com/users/BenEmdon/repos","events_url":"https://api.github.com/users/BenEmdon/events{/privacy}","received_events_url":"https://api.github.com/users/BenEmdon/received_events","type":"User","site_admin":false},"body":"This method isn't new, it was just moved to a different spot in the file for organization purposes.","created_at":"2018-08-17T18:48:51Z","updated_at":"2018-08-17T18:49:06Z","html_url":"https://github.com/education/classroom/pull/1486#discussion_r211001484","pull_request_url":"https://api.github.com/repos/education/classroom/pulls/1486","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/education/classroom/pulls/comments/211001484"},"html":{"href":"https://github.com/education/classroom/pull/1486#discussion_r211001484"},"pull_request":{"href":"https://api.github.com/repos/education/classroom/pulls/1486"}}},"pull_request":{"url":"https://api.github.com/repos/education/classroom/pulls/1486","id":209185056,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5MTg1MDU2","html_url":"https://github.com/education/classroom/pull/1486","diff_url":"https://github.com/education/classroom/pull/1486.diff","patch_url":"https://github.com/education/classroom/pull/1486.patch","issue_url":"https://api.github.com/repos/education/classroom/issues/1486","number":1486,"state":"open","locked":false,"title":"Remove repository setup dead code from GroupAssignmentInvitationsController","user":{"login":"BenEmdon","id":11095731,"node_id":"MDQ6VXNlcjExMDk1NzMx","avatar_url":"https://avatars0.githubusercontent.com/u/11095731?v=4","gravatar_id":"","url":"https://api.github.com/users/BenEmdon","html_url":"https://github.com/BenEmdon","followers_url":"https://api.github.com/users/BenEmdon/followers","following_url":"https://api.github.com/users/BenEmdon/following{/other_user}","gists_url":"https://api.github.com/users/BenEmdon/gists{/gist_id}","starred_url":"https://api.github.com/users/BenEmdon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenEmdon/subscriptions","organizations_url":"https://api.github.com/users/BenEmdon/orgs","repos_url":"https://api.github.com/users/BenEmdon/repos","events_url":"https://api.github.com/users/BenEmdon/events{/privacy}","received_events_url":"https://api.github.com/users/BenEmdon/received_events","type":"User","site_admin":false},"body":"## What\r\nThis PR proposes removing some old `repo_setup` code left by a previous intern. \r\nThis PR doesn't remove the core logic of repo setup but rather removes it's feature flag hidden code path in `GroupAssignmentInvitationsController`.\r\n\r\nIt also removes:\r\n* `app/assets/javascripts/setup-repo.js`\r\n* `app/views/group_assignment_invitations/setup.html.erb`\r\n* Unused cassettes\r\n* `repo_setup` feature flag","created_at":"2018-08-17T15:36:42Z","updated_at":"2018-08-17T18:49:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"965576586e0211655d450293443f5c65a4116357","assignee":null,"assignees":[],"requested_reviewers":[{"login":"srinjoym","id":7866060,"node_id":"MDQ6VXNlcjc4NjYwNjA=","avatar_url":"https://avatars0.githubusercontent.com/u/7866060?v=4","gravatar_id":"","url":"https://api.github.com/users/srinjoym","html_url":"https://github.com/srinjoym","followers_url":"https://api.github.com/users/srinjoym/followers","following_url":"https://api.github.com/users/srinjoym/following{/other_user}","gists_url":"https://api.github.com/users/srinjoym/gists{/gist_id}","starred_url":"https://api.github.com/users/srinjoym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srinjoym/subscriptions","organizations_url":"https://api.github.com/users/srinjoym/orgs","repos_url":"https://api.github.com/users/srinjoym/repos","events_url":"https://api.github.com/users/srinjoym/events{/privacy}","received_events_url":"https://api.github.com/users/srinjoym/received_events","type":"User","site_admin":false},{"login":"d12","id":30920216,"node_id":"MDQ6VXNlcjMwOTIwMjE2","avatar_url":"https://avatars0.githubusercontent.com/u/30920216?v=4","gravatar_id":"","url":"https://api.github.com/users/d12","html_url":"https://github.com/d12","followers_url":"https://api.github.com/users/d12/followers","following_url":"https://api.github.com/users/d12/following{/other_user}","gists_url":"https://api.github.com/users/d12/gists{/gist_id}","starred_url":"https://api.github.com/users/d12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d12/subscriptions","organizations_url":"https://api.github.com/users/d12/orgs","repos_url":"https://api.github.com/users/d12/repos","events_url":"https://api.github.com/users/d12/events{/privacy}","received_events_url":"https://api.github.com/users/d12/received_events","type":"User","site_admin":true}],"requested_teams":[],"labels":[{"id":307505416,"node_id":"MDU6TGFiZWwzMDc1MDU0MTY=","url":"https://api.github.com/repos/education/classroom/labels/:rocket:%20ready%20for%20review","name":":rocket: ready for review","color":"30cc83","default":false},{"id":993240577,"node_id":"MDU6TGFiZWw5OTMyNDA1Nzc=","url":"https://api.github.com/repos/education/classroom/labels/create/import%20repo%20flow","name":"create/import repo flow","color":"96f2bf","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/education/classroom/pulls/1486/commits","review_comments_url":"https://api.github.com/repos/education/classroom/pulls/1486/comments","review_comment_url":"https://api.github.com/repos/education/classroom/pulls/comments{/number}","comments_url":"https://api.github.com/repos/education/classroom/issues/1486/comments","statuses_url":"https://api.github.com/repos/education/classroom/statuses/6e91fb67a241b5b45e246405755a6df978240c49","head":{"label":"education:remove-group-repository-setup-code-path","ref":"remove-group-repository-setup-code-path","sha":"6e91fb67a241b5b45e246405755a6df978240c49","user":{"login":"education","id":6667880,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=","avatar_url":"https://avatars2.githubusercontent.com/u/6667880?v=4","gravatar_id":"","url":"https://api.github.com/users/education","html_url":"https://github.com/education","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","organizations_url":"https://api.github.com/users/education/orgs","repos_url":"https://api.github.com/users/education/repos","events_url":"https://api.github.com/users/education/events{/privacy}","received_events_url":"https://api.github.com/users/education/received_events","type":"Organization","site_admin":false},"repo":{"id":35079964,"node_id":"MDEwOlJlcG9zaXRvcnkzNTA3OTk2NA==","name":"classroom","full_name":"education/classroom","owner":{"login":"education","id":6667880,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=","avatar_url":"https://avatars2.githubusercontent.com/u/6667880?v=4","gravatar_id":"","url":"https://api.github.com/users/education","html_url":"https://github.com/education","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","organizations_url":"https://api.github.com/users/education/orgs","repos_url":"https://api.github.com/users/education/repos","events_url":"https://api.github.com/users/education/events{/privacy}","received_events_url":"https://api.github.com/users/education/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/education/classroom","description":"GitHub Classroom automates repository creation and access control, making it easy for teachers to distribute starter code and collect assignments on GitHub.","fork":false,"url":"https://api.github.com/repos/education/classroom","forks_url":"https://api.github.com/repos/education/classroom/forks","keys_url":"https://api.github.com/repos/education/classroom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/education/classroom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/education/classroom/teams","hooks_url":"https://api.github.com/repos/education/classroom/hooks","issue_events_url":"https://api.github.com/repos/education/classroom/issues/events{/number}","events_url":"https://api.github.com/repos/education/classroom/events","assignees_url":"https://api.github.com/repos/education/classroom/assignees{/user}","branches_url":"https://api.github.com/repos/education/classroom/branches{/branch}","tags_url":"https://api.github.com/repos/education/classroom/tags","blobs_url":"https://api.github.com/repos/education/classroom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/education/classroom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/education/classroom/git/refs{/sha}","trees_url":"https://api.github.com/repos/education/classroom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/education/classroom/statuses/{sha}","languages_url":"https://api.github.com/repos/education/classroom/languages","stargazers_url":"https://api.github.com/repos/education/classroom/stargazers","contributors_url":"https://api.github.com/repos/education/classroom/contributors","subscribers_url":"https://api.github.com/repos/education/classroom/subscribers","subscription_url":"https://api.github.com/repos/education/classroom/subscription","commits_url":"https://api.github.com/repos/education/classroom/commits{/sha}","git_commits_url":"https://api.github.com/repos/education/classroom/git/commits{/sha}","comments_url":"https://api.github.com/repos/education/classroom/comments{/number}","issue_comment_url":"https://api.github.com/repos/education/classroom/issues/comments{/number}","contents_url":"https://api.github.com/repos/education/classroom/contents/{+path}","compare_url":"https://api.github.com/repos/education/classroom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/education/classroom/merges","archive_url":"https://api.github.com/repos/education/classroom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/education/classroom/downloads","issues_url":"https://api.github.com/repos/education/classroom/issues{/number}","pulls_url":"https://api.github.com/repos/education/classroom/pulls{/number}","milestones_url":"https://api.github.com/repos/education/classroom/milestones{/number}","notifications_url":"https://api.github.com/repos/education/classroom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/education/classroom/labels{/name}","releases_url":"https://api.github.com/repos/education/classroom/releases{/id}","deployments_url":"https://api.github.com/repos/education/classroom/deployments","created_at":"2015-05-05T05:33:50Z","updated_at":"2018-08-17T16:28:45Z","pushed_at":"2018-08-17T18:44:52Z","git_url":"git://github.com/education/classroom.git","ssh_url":"git@github.com:education/classroom.git","clone_url":"https://github.com/education/classroom.git","svn_url":"https://github.com/education/classroom","homepage":"https://classroom.github.com","size":42178,"stargazers_count":838,"watchers_count":838,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":246,"mirror_url":null,"archived":false,"open_issues_count":77,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":246,"open_issues":77,"watchers":838,"default_branch":"master"}},"base":{"label":"education:master","ref":"master","sha":"4456c3705c1d777db76818667ee2e4e8d3dc2785","user":{"login":"education","id":6667880,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=","avatar_url":"https://avatars2.githubusercontent.com/u/6667880?v=4","gravatar_id":"","url":"https://api.github.com/users/education","html_url":"https://github.com/education","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","organizations_url":"https://api.github.com/users/education/orgs","repos_url":"https://api.github.com/users/education/repos","events_url":"https://api.github.com/users/education/events{/privacy}","received_events_url":"https://api.github.com/users/education/received_events","type":"Organization","site_admin":false},"repo":{"id":35079964,"node_id":"MDEwOlJlcG9zaXRvcnkzNTA3OTk2NA==","name":"classroom","full_name":"education/classroom","owner":{"login":"education","id":6667880,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=","avatar_url":"https://avatars2.githubusercontent.com/u/6667880?v=4","gravatar_id":"","url":"https://api.github.com/users/education","html_url":"https://github.com/education","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","organizations_url":"https://api.github.com/users/education/orgs","repos_url":"https://api.github.com/users/education/repos","events_url":"https://api.github.com/users/education/events{/privacy}","received_events_url":"https://api.github.com/users/education/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/education/classroom","description":"GitHub Classroom automates repository creation and access control, making it easy for teachers to distribute starter code and collect assignments on GitHub.","fork":false,"url":"https://api.github.com/repos/education/classroom","forks_url":"https://api.github.com/repos/education/classroom/forks","keys_url":"https://api.github.com/repos/education/classroom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/education/classroom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/education/classroom/teams","hooks_url":"https://api.github.com/repos/education/classroom/hooks","issue_events_url":"https://api.github.com/repos/education/classroom/issues/events{/number}","events_url":"https://api.github.com/repos/education/classroom/events","assignees_url":"https://api.github.com/repos/education/classroom/assignees{/user}","branches_url":"https://api.github.com/repos/education/classroom/branches{/branch}","tags_url":"https://api.github.com/repos/education/classroom/tags","blobs_url":"https://api.github.com/repos/education/classroom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/education/classroom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/education/classroom/git/refs{/sha}","trees_url":"https://api.github.com/repos/education/classroom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/education/classroom/statuses/{sha}","languages_url":"https://api.github.com/repos/education/classroom/languages","stargazers_url":"https://api.github.com/repos/education/classroom/stargazers","contributors_url":"https://api.github.com/repos/education/classroom/contributors","subscribers_url":"https://api.github.com/repos/education/classroom/subscribers","subscription_url":"https://api.github.com/repos/education/classroom/subscription","commits_url":"https://api.github.com/repos/education/classroom/commits{/sha}","git_commits_url":"https://api.github.com/repos/education/classroom/git/commits{/sha}","comments_url":"https://api.github.com/repos/education/classroom/comments{/number}","issue_comment_url":"https://api.github.com/repos/education/classroom/issues/comments{/number}","contents_url":"https://api.github.com/repos/education/classroom/contents/{+path}","compare_url":"https://api.github.com/repos/education/classroom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/education/classroom/merges","archive_url":"https://api.github.com/repos/education/classroom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/education/classroom/downloads","issues_url":"https://api.github.com/repos/education/classroom/issues{/number}","pulls_url":"https://api.github.com/repos/education/classroom/pulls{/number}","milestones_url":"https://api.github.com/repos/education/classroom/milestones{/number}","notifications_url":"https://api.github.com/repos/education/classroom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/education/classroom/labels{/name}","releases_url":"https://api.github.com/repos/education/classroom/releases{/id}","deployments_url":"https://api.github.com/repos/education/classroom/deployments","created_at":"2015-05-05T05:33:50Z","updated_at":"2018-08-17T16:28:45Z","pushed_at":"2018-08-17T18:44:52Z","git_url":"git://github.com/education/classroom.git","ssh_url":"git@github.com:education/classroom.git","clone_url":"https://github.com/education/classroom.git","svn_url":"https://github.com/education/classroom","homepage":"https://classroom.github.com","size":42178,"stargazers_count":838,"watchers_count":838,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":246,"mirror_url":null,"archived":false,"open_issues_count":77,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":246,"open_issues":77,"watchers":838,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/education/classroom/pulls/1486"},"html":{"href":"https://github.com/education/classroom/pull/1486"},"issue":{"href":"https://api.github.com/repos/education/classroom/issues/1486"},"comments":{"href":"https://api.github.com/repos/education/classroom/issues/1486/comments"},"review_comments":{"href":"https://api.github.com/repos/education/classroom/pulls/1486/comments"},"review_comment":{"href":"https://api.github.com/repos/education/classroom/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/education/classroom/pulls/1486/commits"},"statuses":{"href":"https://api.github.com/repos/education/classroom/statuses/6e91fb67a241b5b45e246405755a6df978240c49"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"BenEmdon"}}