{"action":"created","comment":{"url":"https://api.github.com/repos/VictorUkafor/more-recipes/pulls/comments/276988361","pull_request_review_id":228694464,"id":276988361,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI3Njk4ODM2MQ==","diff_hunk":"@@ -0,0 +1,37 @@\n+<?php\n+\n+namespace App\\Http\\Middleware;\n+\n+use Closure;\n+use Validator;\n+use Illuminate\\Http\\Request;\n+use App\\Http\\Controllers\\Controller;\n+\n+class ValidateNewRecipe\n+{\n+\n+\n+    /**\n+     * Handle an incoming request.\n+     *\n+     * @param  \\Illuminate\\Http\\Request  $request\n+     * @param  \\Closure  $next\n+     * @return mixed\n+     */\n+    public function handle($request, Closure $next)\n+    {\n+        $validator = Validator::make($request->all(), [\n+            'name' => 'required|unique:recipes,name',\n+            'ingredients' => 'required',\n+            'method' => 'required',\n+            'image' => 'required|image|dimensions:width=225,height=191'\n+        ]);","path":"app/Http/Middleware/ValidateNewRecipe.php","position":28,"original_position":28,"commit_id":"9e08e8c968c058a16c222665c635a6e3c54a31d2","original_commit_id":"9e08e8c968c058a16c222665c635a6e3c54a31d2","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Closing parenthesis of a multi-line function call must be on a line by itself","created_at":"2019-04-19T13:37:26Z","updated_at":"2019-04-19T13:37:28Z","html_url":"https://github.com/VictorUkafor/more-recipes/pull/2#discussion_r276988361","pull_request_url":"https://api.github.com/repos/VictorUkafor/more-recipes/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/VictorUkafor/more-recipes/pulls/comments/276988361"},"html":{"href":"https://github.com/VictorUkafor/more-recipes/pull/2#discussion_r276988361"},"pull_request":{"href":"https://api.github.com/repos/VictorUkafor/more-recipes/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/VictorUkafor/more-recipes/pulls/2","id":271999162,"node_id":"MDExOlB1bGxSZXF1ZXN0MjcxOTk5MTYy","html_url":"https://github.com/VictorUkafor/more-recipes/pull/2","diff_url":"https://github.com/VictorUkafor/more-recipes/pull/2.diff","patch_url":"https://github.com/VictorUkafor/more-recipes/pull/2.patch","issue_url":"https://api.github.com/repos/VictorUkafor/more-recipes/issues/2","number":2,"state":"open","locked":false,"title":"write for creating a recipe","user":{"login":"VictorUkafor","id":13146390,"node_id":"MDQ6VXNlcjEzMTQ2Mzkw","avatar_url":"https://avatars2.githubusercontent.com/u/13146390?v=4","gravatar_id":"","url":"https://api.github.com/users/VictorUkafor","html_url":"https://github.com/VictorUkafor","followers_url":"https://api.github.com/users/VictorUkafor/followers","following_url":"https://api.github.com/users/VictorUkafor/following{/other_user}","gists_url":"https://api.github.com/users/VictorUkafor/gists{/gist_id}","starred_url":"https://api.github.com/users/VictorUkafor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VictorUkafor/subscriptions","organizations_url":"https://api.github.com/users/VictorUkafor/orgs","repos_url":"https://api.github.com/users/VictorUkafor/repos","events_url":"https://api.github.com/users/VictorUkafor/events{/privacy}","received_events_url":"https://api.github.com/users/VictorUkafor/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-04-19T13:37:22Z","updated_at":"2019-04-19T13:37:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b50b2a205d15623c4982783c2ed692df4feb166","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/VictorUkafor/more-recipes/pulls/2/commits","review_comments_url":"https://api.github.com/repos/VictorUkafor/more-recipes/pulls/2/comments","review_comment_url":"https://api.github.com/repos/VictorUkafor/more-recipes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/VictorUkafor/more-recipes/issues/2/comments","statuses_url":"https://api.github.com/repos/VictorUkafor/more-recipes/statuses/9e08e8c968c058a16c222665c635a6e3c54a31d2","head":{"label":"VictorUkafor:create-recipes","ref":"create-recipes","sha":"9e08e8c968c058a16c222665c635a6e3c54a31d2","user":{"login":"VictorUkafor","id":13146390,"node_id":"MDQ6VXNlcjEzMTQ2Mzkw","avatar_url":"https://avatars2.githubusercontent.com/u/13146390?v=4","gravatar_id":"","url":"https://api.github.com/users/VictorUkafor","html_url":"https://github.com/VictorUkafor","followers_url":"https://api.github.com/users/VictorUkafor/followers","following_url":"https://api.github.com/users/VictorUkafor/following{/other_user}","gists_url":"https://api.github.com/users/VictorUkafor/gists{/gist_id}","starred_url":"https://api.github.com/users/VictorUkafor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VictorUkafor/subscriptions","organizations_url":"https://api.github.com/users/VictorUkafor/orgs","repos_url":"https://api.github.com/users/VictorUkafor/repos","events_url":"https://api.github.com/users/VictorUkafor/events{/privacy}","received_events_url":"https://api.github.com/users/VictorUkafor/received_events","type":"User","site_admin":false},"repo":{"id":169716220,"node_id":"MDEwOlJlcG9zaXRvcnkxNjk3MTYyMjA=","name":"more-recipes","full_name":"VictorUkafor/more-recipes","private":false,"owner":{"login":"VictorUkafor","id":13146390,"node_id":"MDQ6VXNlcjEzMTQ2Mzkw","avatar_url":"https://avatars2.githubusercontent.com/u/13146390?v=4","gravatar_id":"","url":"https://api.github.com/users/VictorUkafor","html_url":"https://github.com/VictorUkafor","followers_url":"https://api.github.com/users/VictorUkafor/followers","following_url":"https://api.github.com/users/VictorUkafor/following{/other_user}","gists_url":"https://api.github.com/users/VictorUkafor/gists{/gist_id}","starred_url":"https://api.github.com/users/VictorUkafor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VictorUkafor/subscriptions","organizations_url":"https://api.github.com/users/VictorUkafor/orgs","repos_url":"https://api.github.com/users/VictorUkafor/repos","events_url":"https://api.github.com/users/VictorUkafor/events{/privacy}","received_events_url":"https://api.github.com/users/VictorUkafor/received_events","type":"User","site_admin":false},"html_url":"https://github.com/VictorUkafor/more-recipes","description":"More-Recipes provides a platform for users to share the awesome and exciting recipe ideas they have invented or learnt.","fork":false,"url":"https://api.github.com/repos/VictorUkafor/more-recipes","forks_url":"https://api.github.com/repos/VictorUkafor/more-recipes/forks","keys_url":"https://api.github.com/repos/VictorUkafor/more-recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VictorUkafor/more-recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VictorUkafor/more-recipes/teams","hooks_url":"https://api.github.com/repos/VictorUkafor/more-recipes/hooks","issue_events_url":"https://api.github.com/repos/VictorUkafor/more-recipes/issues/events{/number}","events_url":"https://api.github.com/repos/VictorUkafor/more-recipes/events","assignees_url":"https://api.github.com/repos/VictorUkafor/more-recipes/assignees{/user}","branches_url":"https://api.github.com/repos/VictorUkafor/more-recipes/branches{/branch}","tags_url":"https://api.github.com/repos/VictorUkafor/more-recipes/tags","blobs_url":"https://api.github.com/repos/VictorUkafor/more-recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VictorUkafor/more-recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VictorUkafor/more-recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/VictorUkafor/more-recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VictorUkafor/more-recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/VictorUkafor/more-recipes/languages","stargazers_url":"https://api.github.com/repos/VictorUkafor/more-recipes/stargazers","contributors_url":"https://api.github.com/repos/VictorUkafor/more-recipes/contributors","subscribers_url":"https://api.github.com/repos/VictorUkafor/more-recipes/subscribers","subscription_url":"https://api.github.com/repos/VictorUkafor/more-recipes/subscription","commits_url":"https://api.github.com/repos/VictorUkafor/more-recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/VictorUkafor/more-recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/VictorUkafor/more-recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/VictorUkafor/more-recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/VictorUkafor/more-recipes/contents/{+path}","compare_url":"https://api.github.com/repos/VictorUkafor/more-recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VictorUkafor/more-recipes/merges","archive_url":"https://api.github.com/repos/VictorUkafor/more-recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VictorUkafor/more-recipes/downloads","issues_url":"https://api.github.com/repos/VictorUkafor/more-recipes/issues{/number}","pulls_url":"https://api.github.com/repos/VictorUkafor/more-recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/VictorUkafor/more-recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/VictorUkafor/more-recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VictorUkafor/more-recipes/labels{/name}","releases_url":"https://api.github.com/repos/VictorUkafor/more-recipes/releases{/id}","deployments_url":"https://api.github.com/repos/VictorUkafor/more-recipes/deployments","created_at":"2019-02-08T10:11:26Z","updated_at":"2019-04-18T15:49:20Z","pushed_at":"2019-04-19T13:37:23Z","git_url":"git://github.com/VictorUkafor/more-recipes.git","ssh_url":"git@github.com:VictorUkafor/more-recipes.git","clone_url":"https://github.com/VictorUkafor/more-recipes.git","svn_url":"https://github.com/VictorUkafor/more-recipes","homepage":null,"size":5857,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"VictorUkafor:master","ref":"master","sha":"d48c6dead94e47c9e80e720ca01b992d6c5de036","user":{"login":"VictorUkafor","id":13146390,"node_id":"MDQ6VXNlcjEzMTQ2Mzkw","avatar_url":"https://avatars2.githubusercontent.com/u/13146390?v=4","gravatar_id":"","url":"https://api.github.com/users/VictorUkafor","html_url":"https://github.com/VictorUkafor","followers_url":"https://api.github.com/users/VictorUkafor/followers","following_url":"https://api.github.com/users/VictorUkafor/following{/other_user}","gists_url":"https://api.github.com/users/VictorUkafor/gists{/gist_id}","starred_url":"https://api.github.com/users/VictorUkafor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VictorUkafor/subscriptions","organizations_url":"https://api.github.com/users/VictorUkafor/orgs","repos_url":"https://api.github.com/users/VictorUkafor/repos","events_url":"https://api.github.com/users/VictorUkafor/events{/privacy}","received_events_url":"https://api.github.com/users/VictorUkafor/received_events","type":"User","site_admin":false},"repo":{"id":169716220,"node_id":"MDEwOlJlcG9zaXRvcnkxNjk3MTYyMjA=","name":"more-recipes","full_name":"VictorUkafor/more-recipes","private":false,"owner":{"login":"VictorUkafor","id":13146390,"node_id":"MDQ6VXNlcjEzMTQ2Mzkw","avatar_url":"https://avatars2.githubusercontent.com/u/13146390?v=4","gravatar_id":"","url":"https://api.github.com/users/VictorUkafor","html_url":"https://github.com/VictorUkafor","followers_url":"https://api.github.com/users/VictorUkafor/followers","following_url":"https://api.github.com/users/VictorUkafor/following{/other_user}","gists_url":"https://api.github.com/users/VictorUkafor/gists{/gist_id}","starred_url":"https://api.github.com/users/VictorUkafor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VictorUkafor/subscriptions","organizations_url":"https://api.github.com/users/VictorUkafor/orgs","repos_url":"https://api.github.com/users/VictorUkafor/repos","events_url":"https://api.github.com/users/VictorUkafor/events{/privacy}","received_events_url":"https://api.github.com/users/VictorUkafor/received_events","type":"User","site_admin":false},"html_url":"https://github.com/VictorUkafor/more-recipes","description":"More-Recipes provides a platform for users to share the awesome and exciting recipe ideas they have invented or learnt.","fork":false,"url":"https://api.github.com/repos/VictorUkafor/more-recipes","forks_url":"https://api.github.com/repos/VictorUkafor/more-recipes/forks","keys_url":"https://api.github.com/repos/VictorUkafor/more-recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VictorUkafor/more-recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VictorUkafor/more-recipes/teams","hooks_url":"https://api.github.com/repos/VictorUkafor/more-recipes/hooks","issue_events_url":"https://api.github.com/repos/VictorUkafor/more-recipes/issues/events{/number}","events_url":"https://api.github.com/repos/VictorUkafor/more-recipes/events","assignees_url":"https://api.github.com/repos/VictorUkafor/more-recipes/assignees{/user}","branches_url":"https://api.github.com/repos/VictorUkafor/more-recipes/branches{/branch}","tags_url":"https://api.github.com/repos/VictorUkafor/more-recipes/tags","blobs_url":"https://api.github.com/repos/VictorUkafor/more-recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VictorUkafor/more-recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VictorUkafor/more-recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/VictorUkafor/more-recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VictorUkafor/more-recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/VictorUkafor/more-recipes/languages","stargazers_url":"https://api.github.com/repos/VictorUkafor/more-recipes/stargazers","contributors_url":"https://api.github.com/repos/VictorUkafor/more-recipes/contributors","subscribers_url":"https://api.github.com/repos/VictorUkafor/more-recipes/subscribers","subscription_url":"https://api.github.com/repos/VictorUkafor/more-recipes/subscription","commits_url":"https://api.github.com/repos/VictorUkafor/more-recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/VictorUkafor/more-recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/VictorUkafor/more-recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/VictorUkafor/more-recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/VictorUkafor/more-recipes/contents/{+path}","compare_url":"https://api.github.com/repos/VictorUkafor/more-recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VictorUkafor/more-recipes/merges","archive_url":"https://api.github.com/repos/VictorUkafor/more-recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VictorUkafor/more-recipes/downloads","issues_url":"https://api.github.com/repos/VictorUkafor/more-recipes/issues{/number}","pulls_url":"https://api.github.com/repos/VictorUkafor/more-recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/VictorUkafor/more-recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/VictorUkafor/more-recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VictorUkafor/more-recipes/labels{/name}","releases_url":"https://api.github.com/repos/VictorUkafor/more-recipes/releases{/id}","deployments_url":"https://api.github.com/repos/VictorUkafor/more-recipes/deployments","created_at":"2019-02-08T10:11:26Z","updated_at":"2019-04-18T15:49:20Z","pushed_at":"2019-04-19T13:37:23Z","git_url":"git://github.com/VictorUkafor/more-recipes.git","ssh_url":"git@github.com:VictorUkafor/more-recipes.git","clone_url":"https://github.com/VictorUkafor/more-recipes.git","svn_url":"https://github.com/VictorUkafor/more-recipes","homepage":null,"size":5857,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/VictorUkafor/more-recipes/pulls/2"},"html":{"href":"https://github.com/VictorUkafor/more-recipes/pull/2"},"issue":{"href":"https://api.github.com/repos/VictorUkafor/more-recipes/issues/2"},"comments":{"href":"https://api.github.com/repos/VictorUkafor/more-recipes/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/VictorUkafor/more-recipes/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/VictorUkafor/more-recipes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/VictorUkafor/more-recipes/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/VictorUkafor/more-recipes/statuses/9e08e8c968c058a16c222665c635a6e3c54a31d2"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}