{"action":"created","comment":{"url":"https://api.github.com/repos/ilmesi/aws-lambda-example/pulls/comments/61675807","id":61675807,"diff_hunk":"@@ -2,7 +2,9 @@ var service = require('./service');\n \n exports.bar = function (context, event) {\n   if (!event.size) {\n+    console.log('Missing parameter: size');\n     context.fail('Missing parameter: size');\n+    return;","path":"lib/foo.js","position":6,"original_position":6,"commit_id":"d73d5bf46a9e6610f20deb3a5209bd611a919b28","original_commit_id":"d73d5bf46a9e6610f20deb3a5209bd611a919b28","user":{"login":"ilmesi","id":1755690,"avatar_url":"https://avatars.githubusercontent.com/u/1755690?v=3","gravatar_id":"","url":"https://api.github.com/users/ilmesi","html_url":"https://github.com/ilmesi","followers_url":"https://api.github.com/users/ilmesi/followers","following_url":"https://api.github.com/users/ilmesi/following{/other_user}","gists_url":"https://api.github.com/users/ilmesi/gists{/gist_id}","starred_url":"https://api.github.com/users/ilmesi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilmesi/subscriptions","organizations_url":"https://api.github.com/users/ilmesi/orgs","repos_url":"https://api.github.com/users/ilmesi/repos","events_url":"https://api.github.com/users/ilmesi/events{/privacy}","received_events_url":"https://api.github.com/users/ilmesi/received_events","type":"User","site_admin":false},"body":"Nice catch! But if context.fail stops iteration, we have a bug in our tests (not in the handler), maybe the test function faked (fail: function(msg) {}) should raise an exception instead of doing nothing. Do you how it works?","created_at":"2016-04-30T21:40:30Z","updated_at":"2016-04-30T21:40:30Z","html_url":"https://github.com/ilmesi/aws-lambda-example/pull/1#discussion_r61675807","pull_request_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/ilmesi/aws-lambda-example/pulls/comments/61675807"},"html":{"href":"https://github.com/ilmesi/aws-lambda-example/pull/1#discussion_r61675807"},"pull_request":{"href":"https://api.github.com/repos/ilmesi/aws-lambda-example/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ilmesi/aws-lambda-example/pulls/1","id":68476990,"html_url":"https://github.com/ilmesi/aws-lambda-example/pull/1","diff_url":"https://github.com/ilmesi/aws-lambda-example/pull/1.diff","patch_url":"https://github.com/ilmesi/aws-lambda-example/pull/1.patch","issue_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/issues/1","number":1,"state":"open","locked":false,"title":"two test added","user":{"login":"mngobbi","id":5214566,"avatar_url":"https://avatars.githubusercontent.com/u/5214566?v=3","gravatar_id":"","url":"https://api.github.com/users/mngobbi","html_url":"https://github.com/mngobbi","followers_url":"https://api.github.com/users/mngobbi/followers","following_url":"https://api.github.com/users/mngobbi/following{/other_user}","gists_url":"https://api.github.com/users/mngobbi/gists{/gist_id}","starred_url":"https://api.github.com/users/mngobbi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mngobbi/subscriptions","organizations_url":"https://api.github.com/users/mngobbi/orgs","repos_url":"https://api.github.com/users/mngobbi/repos","events_url":"https://api.github.com/users/mngobbi/events{/privacy}","received_events_url":"https://api.github.com/users/mngobbi/received_events","type":"User","site_admin":false},"body":"testing when \"event.method\" is not a HTTP verb and also when \"event.size\" is undefined","created_at":"2016-04-30T19:42:09Z","updated_at":"2016-04-30T21:40:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8d0df8fda29238d6cf95a85676281c3f148e6de2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/issues/1/comments","statuses_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/statuses/d73d5bf46a9e6610f20deb3a5209bd611a919b28","head":{"label":"mngobbi:master","ref":"master","sha":"d73d5bf46a9e6610f20deb3a5209bd611a919b28","user":{"login":"mngobbi","id":5214566,"avatar_url":"https://avatars.githubusercontent.com/u/5214566?v=3","gravatar_id":"","url":"https://api.github.com/users/mngobbi","html_url":"https://github.com/mngobbi","followers_url":"https://api.github.com/users/mngobbi/followers","following_url":"https://api.github.com/users/mngobbi/following{/other_user}","gists_url":"https://api.github.com/users/mngobbi/gists{/gist_id}","starred_url":"https://api.github.com/users/mngobbi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mngobbi/subscriptions","organizations_url":"https://api.github.com/users/mngobbi/orgs","repos_url":"https://api.github.com/users/mngobbi/repos","events_url":"https://api.github.com/users/mngobbi/events{/privacy}","received_events_url":"https://api.github.com/users/mngobbi/received_events","type":"User","site_admin":false},"repo":{"id":57401159,"name":"aws-lambda-example","full_name":"mngobbi/aws-lambda-example","owner":{"login":"mngobbi","id":5214566,"avatar_url":"https://avatars.githubusercontent.com/u/5214566?v=3","gravatar_id":"","url":"https://api.github.com/users/mngobbi","html_url":"https://github.com/mngobbi","followers_url":"https://api.github.com/users/mngobbi/followers","following_url":"https://api.github.com/users/mngobbi/following{/other_user}","gists_url":"https://api.github.com/users/mngobbi/gists{/gist_id}","starred_url":"https://api.github.com/users/mngobbi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mngobbi/subscriptions","organizations_url":"https://api.github.com/users/mngobbi/orgs","repos_url":"https://api.github.com/users/mngobbi/repos","events_url":"https://api.github.com/users/mngobbi/events{/privacy}","received_events_url":"https://api.github.com/users/mngobbi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mngobbi/aws-lambda-example","description":"Small AWS lambda example","fork":true,"url":"https://api.github.com/repos/mngobbi/aws-lambda-example","forks_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/forks","keys_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/teams","hooks_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/hooks","issue_events_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/issues/events{/number}","events_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/events","assignees_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/assignees{/user}","branches_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/branches{/branch}","tags_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/tags","blobs_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/statuses/{sha}","languages_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/languages","stargazers_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/stargazers","contributors_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/contributors","subscribers_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/subscribers","subscription_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/subscription","commits_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/contents/{+path}","compare_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/merges","archive_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/downloads","issues_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/issues{/number}","pulls_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/pulls{/number}","milestones_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/milestones{/number}","notifications_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/labels{/name}","releases_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/releases{/id}","deployments_url":"https://api.github.com/repos/mngobbi/aws-lambda-example/deployments","created_at":"2016-04-29T17:19:28Z","updated_at":"2016-04-29T17:19:29Z","pushed_at":"2016-04-30T19:37:30Z","git_url":"git://github.com/mngobbi/aws-lambda-example.git","ssh_url":"git@github.com:mngobbi/aws-lambda-example.git","clone_url":"https://github.com/mngobbi/aws-lambda-example.git","svn_url":"https://github.com/mngobbi/aws-lambda-example","homepage":"","size":11,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ilmesi:master","ref":"master","sha":"de9d9e9cacce6e732cf5eaf9086d94a356fc5100","user":{"login":"ilmesi","id":1755690,"avatar_url":"https://avatars.githubusercontent.com/u/1755690?v=3","gravatar_id":"","url":"https://api.github.com/users/ilmesi","html_url":"https://github.com/ilmesi","followers_url":"https://api.github.com/users/ilmesi/followers","following_url":"https://api.github.com/users/ilmesi/following{/other_user}","gists_url":"https://api.github.com/users/ilmesi/gists{/gist_id}","starred_url":"https://api.github.com/users/ilmesi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilmesi/subscriptions","organizations_url":"https://api.github.com/users/ilmesi/orgs","repos_url":"https://api.github.com/users/ilmesi/repos","events_url":"https://api.github.com/users/ilmesi/events{/privacy}","received_events_url":"https://api.github.com/users/ilmesi/received_events","type":"User","site_admin":false},"repo":{"id":55999931,"name":"aws-lambda-example","full_name":"ilmesi/aws-lambda-example","owner":{"login":"ilmesi","id":1755690,"avatar_url":"https://avatars.githubusercontent.com/u/1755690?v=3","gravatar_id":"","url":"https://api.github.com/users/ilmesi","html_url":"https://github.com/ilmesi","followers_url":"https://api.github.com/users/ilmesi/followers","following_url":"https://api.github.com/users/ilmesi/following{/other_user}","gists_url":"https://api.github.com/users/ilmesi/gists{/gist_id}","starred_url":"https://api.github.com/users/ilmesi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilmesi/subscriptions","organizations_url":"https://api.github.com/users/ilmesi/orgs","repos_url":"https://api.github.com/users/ilmesi/repos","events_url":"https://api.github.com/users/ilmesi/events{/privacy}","received_events_url":"https://api.github.com/users/ilmesi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ilmesi/aws-lambda-example","description":"Small AWS lambda example","fork":false,"url":"https://api.github.com/repos/ilmesi/aws-lambda-example","forks_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/forks","keys_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/teams","hooks_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/hooks","issue_events_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/issues/events{/number}","events_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/events","assignees_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/assignees{/user}","branches_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/branches{/branch}","tags_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/tags","blobs_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/statuses/{sha}","languages_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/languages","stargazers_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/stargazers","contributors_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/contributors","subscribers_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/subscribers","subscription_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/subscription","commits_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/contents/{+path}","compare_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/merges","archive_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/downloads","issues_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/issues{/number}","pulls_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/pulls{/number}","milestones_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/milestones{/number}","notifications_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/labels{/name}","releases_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/releases{/id}","deployments_url":"https://api.github.com/repos/ilmesi/aws-lambda-example/deployments","created_at":"2016-04-11T19:12:10Z","updated_at":"2016-04-29T17:19:27Z","pushed_at":"2016-04-30T19:42:10Z","git_url":"git://github.com/ilmesi/aws-lambda-example.git","ssh_url":"git@github.com:ilmesi/aws-lambda-example.git","clone_url":"https://github.com/ilmesi/aws-lambda-example.git","svn_url":"https://github.com/ilmesi/aws-lambda-example","homepage":"","size":10,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ilmesi/aws-lambda-example/pulls/1"},"html":{"href":"https://github.com/ilmesi/aws-lambda-example/pull/1"},"issue":{"href":"https://api.github.com/repos/ilmesi/aws-lambda-example/issues/1"},"comments":{"href":"https://api.github.com/repos/ilmesi/aws-lambda-example/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ilmesi/aws-lambda-example/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ilmesi/aws-lambda-example/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ilmesi/aws-lambda-example/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ilmesi/aws-lambda-example/statuses/d73d5bf46a9e6610f20deb3a5209bd611a919b28"}}}}