{"action":"created","comment":{"url":"https://api.github.com/repos/lob/hapi-default-payload/pulls/comments/54962089","id":54962089,"diff_hunk":"@@ -0,0 +1,41 @@\n+{\n+  \"name\": \"hapi-default-payload\",\n+  \"version\": \"0.0.0\",\n+  \"description\": \"Hapi plugin to default the request payload to an empty object\",\n+  \"main\": \"lib/index.js\",\n+  \"scripts\": {\n+    \"test\": \"NODE_ENV=test istanbul cover _mocha -- test --recursive --timeout 30000\",\n+    \"lint\": \"eslint .\",\n+    \"enforce\": \"istanbul check-coverage --statement 100 --branch 100 --function 100 --lines 100\",\n+    \"release:patch\": \"changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version patch && git push origin && git push origin --tags\",\n+    \"release:minor\": \"changelog -m && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version minor && git push origin && git push origin --tags\",\n+    \"release:major\": \"changelog -M && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version major && git push origin && git push origin --tags\"\n+  },\n+  \"repository\": {\n+    \"type\": \"git\",\n+    \"url\": \"https://github.com/lob/hapi-default-payload.git\"\n+  },\n+  \"keywords\": [\n+    \"hapi\"\n+  ],\n+  \"author\": \"\",\n+  \"license\": \"MIT\",\n+  \"bugs\": {\n+    \"url\": \"https://github.com/lob/hapi-default-payload/issues\"\n+  },\n+  \"homepage\": \"https://github.com/lob/hapi-default-payload\",\n+  \"dependencies\": {\n+  },\n+  \"devDependencies\": {\n+    \"chai\": \"^3.5.0\",\n+    \"eslint\": \"^1.10.3\",\n+    \"eslint-config-lob\": \"^1.0.1\",\n+    \"generate-changelog\": \"^1.0.1\",\n+    \"hapi\": \"^9.5.1\",\n+    \"inject-then\": \"^2.0.5\",\n+    \"istanbul\": \"^0.4.2\",\n+    \"mocha\": \"^2.4.5\",\n+    \"hapi\": \"^9.5.1\",","path":"package.json","position":38,"original_position":38,"commit_id":"a3b0ceca62747b4b9654175a9bbb1f2587b1c9e7","original_commit_id":"a3b0ceca62747b4b9654175a9bbb1f2587b1c9e7","user":{"login":"charlesbjohnson","id":4823640,"avatar_url":"https://avatars.githubusercontent.com/u/4823640?v=3","gravatar_id":"","url":"https://api.github.com/users/charlesbjohnson","html_url":"https://github.com/charlesbjohnson","followers_url":"https://api.github.com/users/charlesbjohnson/followers","following_url":"https://api.github.com/users/charlesbjohnson/following{/other_user}","gists_url":"https://api.github.com/users/charlesbjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/charlesbjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charlesbjohnson/subscriptions","organizations_url":"https://api.github.com/users/charlesbjohnson/orgs","repos_url":"https://api.github.com/users/charlesbjohnson/repos","events_url":"https://api.github.com/users/charlesbjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/charlesbjohnson/received_events","type":"User","site_admin":false},"body":"Looks like I goofed on the rebase.","created_at":"2016-03-03T22:47:09Z","updated_at":"2016-03-03T22:47:09Z","html_url":"https://github.com/lob/hapi-default-payload/pull/1#discussion_r54962089","pull_request_url":"https://api.github.com/repos/lob/hapi-default-payload/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/lob/hapi-default-payload/pulls/comments/54962089"},"html":{"href":"https://github.com/lob/hapi-default-payload/pull/1#discussion_r54962089"},"pull_request":{"href":"https://api.github.com/repos/lob/hapi-default-payload/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/lob/hapi-default-payload/pulls/1","id":61615417,"html_url":"https://github.com/lob/hapi-default-payload/pull/1","diff_url":"https://github.com/lob/hapi-default-payload/pull/1.diff","patch_url":"https://github.com/lob/hapi-default-payload/pull/1.patch","issue_url":"https://api.github.com/repos/lob/hapi-default-payload/issues/1","number":1,"state":"open","locked":false,"title":"feat(plugin): create plugin","user":{"login":"charlesbjohnson","id":4823640,"avatar_url":"https://avatars.githubusercontent.com/u/4823640?v=3","gravatar_id":"","url":"https://api.github.com/users/charlesbjohnson","html_url":"https://github.com/charlesbjohnson","followers_url":"https://api.github.com/users/charlesbjohnson/followers","following_url":"https://api.github.com/users/charlesbjohnson/following{/other_user}","gists_url":"https://api.github.com/users/charlesbjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/charlesbjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charlesbjohnson/subscriptions","organizations_url":"https://api.github.com/users/charlesbjohnson/orgs","repos_url":"https://api.github.com/users/charlesbjohnson/repos","events_url":"https://api.github.com/users/charlesbjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/charlesbjohnson/received_events","type":"User","site_admin":false},"body":"##### What\r\n\r\nCreated a plugin to default `request.payload` when it is not present.\r\n\r\n##### Why\r\n\r\nSo that the Joi errors from payload validation in a route are more descriptive.","created_at":"2016-03-03T19:56:22Z","updated_at":"2016-03-03T22:47:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f85d1af37565a285a01d2f57182245bd5122dd41","assignee":{"login":"charlesbjohnson","id":4823640,"avatar_url":"https://avatars.githubusercontent.com/u/4823640?v=3","gravatar_id":"","url":"https://api.github.com/users/charlesbjohnson","html_url":"https://github.com/charlesbjohnson","followers_url":"https://api.github.com/users/charlesbjohnson/followers","following_url":"https://api.github.com/users/charlesbjohnson/following{/other_user}","gists_url":"https://api.github.com/users/charlesbjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/charlesbjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charlesbjohnson/subscriptions","organizations_url":"https://api.github.com/users/charlesbjohnson/orgs","repos_url":"https://api.github.com/users/charlesbjohnson/repos","events_url":"https://api.github.com/users/charlesbjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/charlesbjohnson/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/lob/hapi-default-payload/pulls/1/commits","review_comments_url":"https://api.github.com/repos/lob/hapi-default-payload/pulls/1/comments","review_comment_url":"https://api.github.com/repos/lob/hapi-default-payload/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lob/hapi-default-payload/issues/1/comments","statuses_url":"https://api.github.com/repos/lob/hapi-default-payload/statuses/a3b0ceca62747b4b9654175a9bbb1f2587b1c9e7","head":{"label":"lob:feature-create-plugin","ref":"feature-create-plugin","sha":"a3b0ceca62747b4b9654175a9bbb1f2587b1c9e7","user":{"login":"lob","id":4955790,"avatar_url":"https://avatars.githubusercontent.com/u/4955790?v=3","gravatar_id":"","url":"https://api.github.com/users/lob","html_url":"https://github.com/lob","followers_url":"https://api.github.com/users/lob/followers","following_url":"https://api.github.com/users/lob/following{/other_user}","gists_url":"https://api.github.com/users/lob/gists{/gist_id}","starred_url":"https://api.github.com/users/lob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lob/subscriptions","organizations_url":"https://api.github.com/users/lob/orgs","repos_url":"https://api.github.com/users/lob/repos","events_url":"https://api.github.com/users/lob/events{/privacy}","received_events_url":"https://api.github.com/users/lob/received_events","type":"Organization","site_admin":false},"repo":{"id":53078456,"name":"hapi-default-payload","full_name":"lob/hapi-default-payload","owner":{"login":"lob","id":4955790,"avatar_url":"https://avatars.githubusercontent.com/u/4955790?v=3","gravatar_id":"","url":"https://api.github.com/users/lob","html_url":"https://github.com/lob","followers_url":"https://api.github.com/users/lob/followers","following_url":"https://api.github.com/users/lob/following{/other_user}","gists_url":"https://api.github.com/users/lob/gists{/gist_id}","starred_url":"https://api.github.com/users/lob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lob/subscriptions","organizations_url":"https://api.github.com/users/lob/orgs","repos_url":"https://api.github.com/users/lob/repos","events_url":"https://api.github.com/users/lob/events{/privacy}","received_events_url":"https://api.github.com/users/lob/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lob/hapi-default-payload","description":"Hapi plugin to default the request payload to an empty object","fork":false,"url":"https://api.github.com/repos/lob/hapi-default-payload","forks_url":"https://api.github.com/repos/lob/hapi-default-payload/forks","keys_url":"https://api.github.com/repos/lob/hapi-default-payload/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lob/hapi-default-payload/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lob/hapi-default-payload/teams","hooks_url":"https://api.github.com/repos/lob/hapi-default-payload/hooks","issue_events_url":"https://api.github.com/repos/lob/hapi-default-payload/issues/events{/number}","events_url":"https://api.github.com/repos/lob/hapi-default-payload/events","assignees_url":"https://api.github.com/repos/lob/hapi-default-payload/assignees{/user}","branches_url":"https://api.github.com/repos/lob/hapi-default-payload/branches{/branch}","tags_url":"https://api.github.com/repos/lob/hapi-default-payload/tags","blobs_url":"https://api.github.com/repos/lob/hapi-default-payload/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lob/hapi-default-payload/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lob/hapi-default-payload/git/refs{/sha}","trees_url":"https://api.github.com/repos/lob/hapi-default-payload/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lob/hapi-default-payload/statuses/{sha}","languages_url":"https://api.github.com/repos/lob/hapi-default-payload/languages","stargazers_url":"https://api.github.com/repos/lob/hapi-default-payload/stargazers","contributors_url":"https://api.github.com/repos/lob/hapi-default-payload/contributors","subscribers_url":"https://api.github.com/repos/lob/hapi-default-payload/subscribers","subscription_url":"https://api.github.com/repos/lob/hapi-default-payload/subscription","commits_url":"https://api.github.com/repos/lob/hapi-default-payload/commits{/sha}","git_commits_url":"https://api.github.com/repos/lob/hapi-default-payload/git/commits{/sha}","comments_url":"https://api.github.com/repos/lob/hapi-default-payload/comments{/number}","issue_comment_url":"https://api.github.com/repos/lob/hapi-default-payload/issues/comments{/number}","contents_url":"https://api.github.com/repos/lob/hapi-default-payload/contents/{+path}","compare_url":"https://api.github.com/repos/lob/hapi-default-payload/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lob/hapi-default-payload/merges","archive_url":"https://api.github.com/repos/lob/hapi-default-payload/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lob/hapi-default-payload/downloads","issues_url":"https://api.github.com/repos/lob/hapi-default-payload/issues{/number}","pulls_url":"https://api.github.com/repos/lob/hapi-default-payload/pulls{/number}","milestones_url":"https://api.github.com/repos/lob/hapi-default-payload/milestones{/number}","notifications_url":"https://api.github.com/repos/lob/hapi-default-payload/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lob/hapi-default-payload/labels{/name}","releases_url":"https://api.github.com/repos/lob/hapi-default-payload/releases{/id}","deployments_url":"https://api.github.com/repos/lob/hapi-default-payload/deployments","created_at":"2016-03-03T19:49:45Z","updated_at":"2016-03-03T19:49:45Z","pushed_at":"2016-03-03T20:55:08Z","git_url":"git://github.com/lob/hapi-default-payload.git","ssh_url":"git@github.com:lob/hapi-default-payload.git","clone_url":"https://github.com/lob/hapi-default-payload.git","svn_url":"https://github.com/lob/hapi-default-payload","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"lob:master","ref":"master","sha":"2c7abc78f4d6d8b7a16bb70d9265c69d63efcb44","user":{"login":"lob","id":4955790,"avatar_url":"https://avatars.githubusercontent.com/u/4955790?v=3","gravatar_id":"","url":"https://api.github.com/users/lob","html_url":"https://github.com/lob","followers_url":"https://api.github.com/users/lob/followers","following_url":"https://api.github.com/users/lob/following{/other_user}","gists_url":"https://api.github.com/users/lob/gists{/gist_id}","starred_url":"https://api.github.com/users/lob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lob/subscriptions","organizations_url":"https://api.github.com/users/lob/orgs","repos_url":"https://api.github.com/users/lob/repos","events_url":"https://api.github.com/users/lob/events{/privacy}","received_events_url":"https://api.github.com/users/lob/received_events","type":"Organization","site_admin":false},"repo":{"id":53078456,"name":"hapi-default-payload","full_name":"lob/hapi-default-payload","owner":{"login":"lob","id":4955790,"avatar_url":"https://avatars.githubusercontent.com/u/4955790?v=3","gravatar_id":"","url":"https://api.github.com/users/lob","html_url":"https://github.com/lob","followers_url":"https://api.github.com/users/lob/followers","following_url":"https://api.github.com/users/lob/following{/other_user}","gists_url":"https://api.github.com/users/lob/gists{/gist_id}","starred_url":"https://api.github.com/users/lob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lob/subscriptions","organizations_url":"https://api.github.com/users/lob/orgs","repos_url":"https://api.github.com/users/lob/repos","events_url":"https://api.github.com/users/lob/events{/privacy}","received_events_url":"https://api.github.com/users/lob/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lob/hapi-default-payload","description":"Hapi plugin to default the request payload to an empty object","fork":false,"url":"https://api.github.com/repos/lob/hapi-default-payload","forks_url":"https://api.github.com/repos/lob/hapi-default-payload/forks","keys_url":"https://api.github.com/repos/lob/hapi-default-payload/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lob/hapi-default-payload/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lob/hapi-default-payload/teams","hooks_url":"https://api.github.com/repos/lob/hapi-default-payload/hooks","issue_events_url":"https://api.github.com/repos/lob/hapi-default-payload/issues/events{/number}","events_url":"https://api.github.com/repos/lob/hapi-default-payload/events","assignees_url":"https://api.github.com/repos/lob/hapi-default-payload/assignees{/user}","branches_url":"https://api.github.com/repos/lob/hapi-default-payload/branches{/branch}","tags_url":"https://api.github.com/repos/lob/hapi-default-payload/tags","blobs_url":"https://api.github.com/repos/lob/hapi-default-payload/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lob/hapi-default-payload/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lob/hapi-default-payload/git/refs{/sha}","trees_url":"https://api.github.com/repos/lob/hapi-default-payload/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lob/hapi-default-payload/statuses/{sha}","languages_url":"https://api.github.com/repos/lob/hapi-default-payload/languages","stargazers_url":"https://api.github.com/repos/lob/hapi-default-payload/stargazers","contributors_url":"https://api.github.com/repos/lob/hapi-default-payload/contributors","subscribers_url":"https://api.github.com/repos/lob/hapi-default-payload/subscribers","subscription_url":"https://api.github.com/repos/lob/hapi-default-payload/subscription","commits_url":"https://api.github.com/repos/lob/hapi-default-payload/commits{/sha}","git_commits_url":"https://api.github.com/repos/lob/hapi-default-payload/git/commits{/sha}","comments_url":"https://api.github.com/repos/lob/hapi-default-payload/comments{/number}","issue_comment_url":"https://api.github.com/repos/lob/hapi-default-payload/issues/comments{/number}","contents_url":"https://api.github.com/repos/lob/hapi-default-payload/contents/{+path}","compare_url":"https://api.github.com/repos/lob/hapi-default-payload/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lob/hapi-default-payload/merges","archive_url":"https://api.github.com/repos/lob/hapi-default-payload/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lob/hapi-default-payload/downloads","issues_url":"https://api.github.com/repos/lob/hapi-default-payload/issues{/number}","pulls_url":"https://api.github.com/repos/lob/hapi-default-payload/pulls{/number}","milestones_url":"https://api.github.com/repos/lob/hapi-default-payload/milestones{/number}","notifications_url":"https://api.github.com/repos/lob/hapi-default-payload/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lob/hapi-default-payload/labels{/name}","releases_url":"https://api.github.com/repos/lob/hapi-default-payload/releases{/id}","deployments_url":"https://api.github.com/repos/lob/hapi-default-payload/deployments","created_at":"2016-03-03T19:49:45Z","updated_at":"2016-03-03T19:49:45Z","pushed_at":"2016-03-03T20:55:08Z","git_url":"git://github.com/lob/hapi-default-payload.git","ssh_url":"git@github.com:lob/hapi-default-payload.git","clone_url":"https://github.com/lob/hapi-default-payload.git","svn_url":"https://github.com/lob/hapi-default-payload","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lob/hapi-default-payload/pulls/1"},"html":{"href":"https://github.com/lob/hapi-default-payload/pull/1"},"issue":{"href":"https://api.github.com/repos/lob/hapi-default-payload/issues/1"},"comments":{"href":"https://api.github.com/repos/lob/hapi-default-payload/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/lob/hapi-default-payload/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/lob/hapi-default-payload/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lob/hapi-default-payload/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/lob/hapi-default-payload/statuses/a3b0ceca62747b4b9654175a9bbb1f2587b1c9e7"}}}}