{"action":"created","comment":{"url":"https://api.github.com/repos/tpavlek/LIMES/pulls/comments/181235742","pull_request_review_id":111812843,"id":181235742,"diff_hunk":"@@ -0,0 +1,40 @@\n+<?php\n+\n+namespace App\\Http\\Controllers;\n+\n+use Illuminate\\Http\\Request;\n+use App\\User;\n+use App\\Connection;\n+use Illuminate\\Support\\Facades\\Auth;\n+\n+class ConnectionController extends Controller\n+{\n+    public function show($id)\n+    {\n+        $user = User::findOrFail($id);\n+        $connections = Connection::getAvailableConnections($user);\n+\n+        return view('users.connections')\n+            ->with('user', $user)\n+            ->with('connections', $connections);\n+    }\n+\n+    public function add($id)\n+    {\n+        $connection = new Connection();\n+\n+        $connection->owner_id = Auth::user()->id;","path":"app/Http/Controllers/ConnectionController.php","position":26,"original_position":26,"commit_id":"50c3d14f7feb8cd027a96af5426d6cd7ed53724d","original_commit_id":"50c3d14f7feb8cd027a96af5426d6cd7ed53724d","user":{"login":"cortstar","id":8594743,"avatar_url":"https://avatars3.githubusercontent.com/u/8594743?v=4","gravatar_id":"","url":"https://api.github.com/users/cortstar","html_url":"https://github.com/cortstar","followers_url":"https://api.github.com/users/cortstar/followers","following_url":"https://api.github.com/users/cortstar/following{/other_user}","gists_url":"https://api.github.com/users/cortstar/gists{/gist_id}","starred_url":"https://api.github.com/users/cortstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cortstar/subscriptions","organizations_url":"https://api.github.com/users/cortstar/orgs","repos_url":"https://api.github.com/users/cortstar/repos","events_url":"https://api.github.com/users/cortstar/events{/privacy}","received_events_url":"https://api.github.com/users/cortstar/received_events","type":"User","site_admin":false},"body":"Yep, it would! ☑️ ","created_at":"2018-04-12T22:05:01Z","updated_at":"2018-04-12T22:05:01Z","html_url":"https://github.com/tpavlek/LIMES/pull/6#discussion_r181235742","pull_request_url":"https://api.github.com/repos/tpavlek/LIMES/pulls/6","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/tpavlek/LIMES/pulls/comments/181235742"},"html":{"href":"https://github.com/tpavlek/LIMES/pull/6#discussion_r181235742"},"pull_request":{"href":"https://api.github.com/repos/tpavlek/LIMES/pulls/6"}},"in_reply_to_id":181225400},"pull_request":{"url":"https://api.github.com/repos/tpavlek/LIMES/pulls/6","id":181326258,"html_url":"https://github.com/tpavlek/LIMES/pull/6","diff_url":"https://github.com/tpavlek/LIMES/pull/6.diff","patch_url":"https://github.com/tpavlek/LIMES/pull/6.patch","issue_url":"https://api.github.com/repos/tpavlek/LIMES/issues/6","number":6,"state":"open","locked":false,"title":"Add connections","user":{"login":"cortstar","id":8594743,"avatar_url":"https://avatars3.githubusercontent.com/u/8594743?v=4","gravatar_id":"","url":"https://api.github.com/users/cortstar","html_url":"https://github.com/cortstar","followers_url":"https://api.github.com/users/cortstar/followers","following_url":"https://api.github.com/users/cortstar/following{/other_user}","gists_url":"https://api.github.com/users/cortstar/gists{/gist_id}","starred_url":"https://api.github.com/users/cortstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cortstar/subscriptions","organizations_url":"https://api.github.com/users/cortstar/orgs","repos_url":"https://api.github.com/users/cortstar/repos","events_url":"https://api.github.com/users/cortstar/events{/privacy}","received_events_url":"https://api.github.com/users/cortstar/received_events","type":"User","site_admin":false},"body":"Adds connections, closes #4 ","created_at":"2018-04-12T21:08:56Z","updated_at":"2018-04-12T22:05:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a989e72e5d5b0ca51f421cc334b1f80c8d3b863e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/tpavlek/LIMES/pulls/6/commits","review_comments_url":"https://api.github.com/repos/tpavlek/LIMES/pulls/6/comments","review_comment_url":"https://api.github.com/repos/tpavlek/LIMES/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tpavlek/LIMES/issues/6/comments","statuses_url":"https://api.github.com/repos/tpavlek/LIMES/statuses/50c3d14f7feb8cd027a96af5426d6cd7ed53724d","head":{"label":"tpavlek:add_connections","ref":"add_connections","sha":"50c3d14f7feb8cd027a96af5426d6cd7ed53724d","user":{"login":"tpavlek","id":782576,"avatar_url":"https://avatars0.githubusercontent.com/u/782576?v=4","gravatar_id":"","url":"https://api.github.com/users/tpavlek","html_url":"https://github.com/tpavlek","followers_url":"https://api.github.com/users/tpavlek/followers","following_url":"https://api.github.com/users/tpavlek/following{/other_user}","gists_url":"https://api.github.com/users/tpavlek/gists{/gist_id}","starred_url":"https://api.github.com/users/tpavlek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpavlek/subscriptions","organizations_url":"https://api.github.com/users/tpavlek/orgs","repos_url":"https://api.github.com/users/tpavlek/repos","events_url":"https://api.github.com/users/tpavlek/events{/privacy}","received_events_url":"https://api.github.com/users/tpavlek/received_events","type":"User","site_admin":false},"repo":{"id":125665484,"name":"LIMES","full_name":"tpavlek/LIMES","owner":{"login":"tpavlek","id":782576,"avatar_url":"https://avatars0.githubusercontent.com/u/782576?v=4","gravatar_id":"","url":"https://api.github.com/users/tpavlek","html_url":"https://github.com/tpavlek","followers_url":"https://api.github.com/users/tpavlek/followers","following_url":"https://api.github.com/users/tpavlek/following{/other_user}","gists_url":"https://api.github.com/users/tpavlek/gists{/gist_id}","starred_url":"https://api.github.com/users/tpavlek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpavlek/subscriptions","organizations_url":"https://api.github.com/users/tpavlek/orgs","repos_url":"https://api.github.com/users/tpavlek/repos","events_url":"https://api.github.com/users/tpavlek/events{/privacy}","received_events_url":"https://api.github.com/users/tpavlek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tpavlek/LIMES","description":null,"fork":false,"url":"https://api.github.com/repos/tpavlek/LIMES","forks_url":"https://api.github.com/repos/tpavlek/LIMES/forks","keys_url":"https://api.github.com/repos/tpavlek/LIMES/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tpavlek/LIMES/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tpavlek/LIMES/teams","hooks_url":"https://api.github.com/repos/tpavlek/LIMES/hooks","issue_events_url":"https://api.github.com/repos/tpavlek/LIMES/issues/events{/number}","events_url":"https://api.github.com/repos/tpavlek/LIMES/events","assignees_url":"https://api.github.com/repos/tpavlek/LIMES/assignees{/user}","branches_url":"https://api.github.com/repos/tpavlek/LIMES/branches{/branch}","tags_url":"https://api.github.com/repos/tpavlek/LIMES/tags","blobs_url":"https://api.github.com/repos/tpavlek/LIMES/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tpavlek/LIMES/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tpavlek/LIMES/git/refs{/sha}","trees_url":"https://api.github.com/repos/tpavlek/LIMES/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tpavlek/LIMES/statuses/{sha}","languages_url":"https://api.github.com/repos/tpavlek/LIMES/languages","stargazers_url":"https://api.github.com/repos/tpavlek/LIMES/stargazers","contributors_url":"https://api.github.com/repos/tpavlek/LIMES/contributors","subscribers_url":"https://api.github.com/repos/tpavlek/LIMES/subscribers","subscription_url":"https://api.github.com/repos/tpavlek/LIMES/subscription","commits_url":"https://api.github.com/repos/tpavlek/LIMES/commits{/sha}","git_commits_url":"https://api.github.com/repos/tpavlek/LIMES/git/commits{/sha}","comments_url":"https://api.github.com/repos/tpavlek/LIMES/comments{/number}","issue_comment_url":"https://api.github.com/repos/tpavlek/LIMES/issues/comments{/number}","contents_url":"https://api.github.com/repos/tpavlek/LIMES/contents/{+path}","compare_url":"https://api.github.com/repos/tpavlek/LIMES/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tpavlek/LIMES/merges","archive_url":"https://api.github.com/repos/tpavlek/LIMES/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tpavlek/LIMES/downloads","issues_url":"https://api.github.com/repos/tpavlek/LIMES/issues{/number}","pulls_url":"https://api.github.com/repos/tpavlek/LIMES/pulls{/number}","milestones_url":"https://api.github.com/repos/tpavlek/LIMES/milestones{/number}","notifications_url":"https://api.github.com/repos/tpavlek/LIMES/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tpavlek/LIMES/labels{/name}","releases_url":"https://api.github.com/repos/tpavlek/LIMES/releases{/id}","deployments_url":"https://api.github.com/repos/tpavlek/LIMES/deployments","created_at":"2018-03-17T20:13:22Z","updated_at":"2018-04-12T20:37:30Z","pushed_at":"2018-04-12T21:08:57Z","git_url":"git://github.com/tpavlek/LIMES.git","ssh_url":"git@github.com:tpavlek/LIMES.git","clone_url":"https://github.com/tpavlek/LIMES.git","svn_url":"https://github.com/tpavlek/LIMES","homepage":null,"size":968,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"tpavlek:master","ref":"master","sha":"1fa6ab195d29ac583aacd8a1bb56b28243ade951","user":{"login":"tpavlek","id":782576,"avatar_url":"https://avatars0.githubusercontent.com/u/782576?v=4","gravatar_id":"","url":"https://api.github.com/users/tpavlek","html_url":"https://github.com/tpavlek","followers_url":"https://api.github.com/users/tpavlek/followers","following_url":"https://api.github.com/users/tpavlek/following{/other_user}","gists_url":"https://api.github.com/users/tpavlek/gists{/gist_id}","starred_url":"https://api.github.com/users/tpavlek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpavlek/subscriptions","organizations_url":"https://api.github.com/users/tpavlek/orgs","repos_url":"https://api.github.com/users/tpavlek/repos","events_url":"https://api.github.com/users/tpavlek/events{/privacy}","received_events_url":"https://api.github.com/users/tpavlek/received_events","type":"User","site_admin":false},"repo":{"id":125665484,"name":"LIMES","full_name":"tpavlek/LIMES","owner":{"login":"tpavlek","id":782576,"avatar_url":"https://avatars0.githubusercontent.com/u/782576?v=4","gravatar_id":"","url":"https://api.github.com/users/tpavlek","html_url":"https://github.com/tpavlek","followers_url":"https://api.github.com/users/tpavlek/followers","following_url":"https://api.github.com/users/tpavlek/following{/other_user}","gists_url":"https://api.github.com/users/tpavlek/gists{/gist_id}","starred_url":"https://api.github.com/users/tpavlek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpavlek/subscriptions","organizations_url":"https://api.github.com/users/tpavlek/orgs","repos_url":"https://api.github.com/users/tpavlek/repos","events_url":"https://api.github.com/users/tpavlek/events{/privacy}","received_events_url":"https://api.github.com/users/tpavlek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tpavlek/LIMES","description":null,"fork":false,"url":"https://api.github.com/repos/tpavlek/LIMES","forks_url":"https://api.github.com/repos/tpavlek/LIMES/forks","keys_url":"https://api.github.com/repos/tpavlek/LIMES/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tpavlek/LIMES/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tpavlek/LIMES/teams","hooks_url":"https://api.github.com/repos/tpavlek/LIMES/hooks","issue_events_url":"https://api.github.com/repos/tpavlek/LIMES/issues/events{/number}","events_url":"https://api.github.com/repos/tpavlek/LIMES/events","assignees_url":"https://api.github.com/repos/tpavlek/LIMES/assignees{/user}","branches_url":"https://api.github.com/repos/tpavlek/LIMES/branches{/branch}","tags_url":"https://api.github.com/repos/tpavlek/LIMES/tags","blobs_url":"https://api.github.com/repos/tpavlek/LIMES/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tpavlek/LIMES/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tpavlek/LIMES/git/refs{/sha}","trees_url":"https://api.github.com/repos/tpavlek/LIMES/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tpavlek/LIMES/statuses/{sha}","languages_url":"https://api.github.com/repos/tpavlek/LIMES/languages","stargazers_url":"https://api.github.com/repos/tpavlek/LIMES/stargazers","contributors_url":"https://api.github.com/repos/tpavlek/LIMES/contributors","subscribers_url":"https://api.github.com/repos/tpavlek/LIMES/subscribers","subscription_url":"https://api.github.com/repos/tpavlek/LIMES/subscription","commits_url":"https://api.github.com/repos/tpavlek/LIMES/commits{/sha}","git_commits_url":"https://api.github.com/repos/tpavlek/LIMES/git/commits{/sha}","comments_url":"https://api.github.com/repos/tpavlek/LIMES/comments{/number}","issue_comment_url":"https://api.github.com/repos/tpavlek/LIMES/issues/comments{/number}","contents_url":"https://api.github.com/repos/tpavlek/LIMES/contents/{+path}","compare_url":"https://api.github.com/repos/tpavlek/LIMES/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tpavlek/LIMES/merges","archive_url":"https://api.github.com/repos/tpavlek/LIMES/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tpavlek/LIMES/downloads","issues_url":"https://api.github.com/repos/tpavlek/LIMES/issues{/number}","pulls_url":"https://api.github.com/repos/tpavlek/LIMES/pulls{/number}","milestones_url":"https://api.github.com/repos/tpavlek/LIMES/milestones{/number}","notifications_url":"https://api.github.com/repos/tpavlek/LIMES/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tpavlek/LIMES/labels{/name}","releases_url":"https://api.github.com/repos/tpavlek/LIMES/releases{/id}","deployments_url":"https://api.github.com/repos/tpavlek/LIMES/deployments","created_at":"2018-03-17T20:13:22Z","updated_at":"2018-04-12T20:37:30Z","pushed_at":"2018-04-12T21:08:57Z","git_url":"git://github.com/tpavlek/LIMES.git","ssh_url":"git@github.com:tpavlek/LIMES.git","clone_url":"https://github.com/tpavlek/LIMES.git","svn_url":"https://github.com/tpavlek/LIMES","homepage":null,"size":968,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tpavlek/LIMES/pulls/6"},"html":{"href":"https://github.com/tpavlek/LIMES/pull/6"},"issue":{"href":"https://api.github.com/repos/tpavlek/LIMES/issues/6"},"comments":{"href":"https://api.github.com/repos/tpavlek/LIMES/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/tpavlek/LIMES/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/tpavlek/LIMES/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tpavlek/LIMES/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/tpavlek/LIMES/statuses/50c3d14f7feb8cd027a96af5426d6cd7ed53724d"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"cortstar"}}