{"action":"created","comment":{"url":"https://api.github.com/repos/serverless/serverless/pulls/comments/72962213","id":72962213,"diff_hunk":"@@ -0,0 +1,33 @@\n+'use strict';\n+\n+const spawn = require('child_process').spawn;\n+\n+// Your first function handler\n+module.exports.hello = (event, context, cb) => {\n+  const proc = spawn('./hello', [JSON.stringify(event)]);\n+  let eventData;\n+  let err;\n+\n+  proc.stdout.on('data', (data) => {\n+    eventData = JSON.parse(data.toString('ascii'));\n+    if (typeof eventData === 'string') {\n+      eventData = JSON.parse(eventData);\n+    }\n+  });\n+\n+  proc.stderr.on('data', (data) => {\n+    err = data.toString('ascii');\n+  });\n+\n+  proc.on('close', (code) => {\n+    if (code !== 0) {\n+      cb(new Error('Process exited with non-zero status code'));\n+    } else if (err) {\n+      cb(new Error(err));\n+    } else {\n+      cb(null, { message: 'Go Serverless v1.0! Your function executed successfully!', eventData });","path":"lib/plugins/create/templates/aws-golang/handler.js","position":28,"original_position":28,"commit_id":"81cc13d05c83603c904ae7e0e75f1aacb81f0a20","original_commit_id":"81cc13d05c83603c904ae7e0e75f1aacb81f0a20","user":{"login":"flomotlik","id":132653,"avatar_url":"https://avatars.githubusercontent.com/u/132653?v=3","gravatar_id":"","url":"https://api.github.com/users/flomotlik","html_url":"https://github.com/flomotlik","followers_url":"https://api.github.com/users/flomotlik/followers","following_url":"https://api.github.com/users/flomotlik/following{/other_user}","gists_url":"https://api.github.com/users/flomotlik/gists{/gist_id}","starred_url":"https://api.github.com/users/flomotlik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flomotlik/subscriptions","organizations_url":"https://api.github.com/users/flomotlik/orgs","repos_url":"https://api.github.com/users/flomotlik/repos","events_url":"https://api.github.com/users/flomotlik/events{/privacy}","received_events_url":"https://api.github.com/users/flomotlik/received_events","type":"User","site_admin":false},"body":"this should only return event data without the message, otherwise people will always have the message included in their returns","created_at":"2016-08-01T11:23:35Z","updated_at":"2016-08-01T11:23:35Z","html_url":"https://github.com/serverless/serverless/pull/1712#discussion_r72962213","pull_request_url":"https://api.github.com/repos/serverless/serverless/pulls/1712","_links":{"self":{"href":"https://api.github.com/repos/serverless/serverless/pulls/comments/72962213"},"html":{"href":"https://github.com/serverless/serverless/pull/1712#discussion_r72962213"},"pull_request":{"href":"https://api.github.com/repos/serverless/serverless/pulls/1712"}}},"pull_request":{"url":"https://api.github.com/repos/serverless/serverless/pulls/1712","id":79441353,"html_url":"https://github.com/serverless/serverless/pull/1712","diff_url":"https://github.com/serverless/serverless/pull/1712.diff","patch_url":"https://github.com/serverless/serverless/pull/1712.patch","issue_url":"https://api.github.com/repos/serverless/serverless/issues/1712","number":1712,"state":"open","locked":false,"title":"Resolve #1436: Add AWS Golang template, tests, and instructions on simple quick start","user":{"login":"license2e","id":7691847,"avatar_url":"https://avatars.githubusercontent.com/u/7691847?v=3","gravatar_id":"","url":"https://api.github.com/users/license2e","html_url":"https://github.com/license2e","followers_url":"https://api.github.com/users/license2e/followers","following_url":"https://api.github.com/users/license2e/following{/other_user}","gists_url":"https://api.github.com/users/license2e/gists{/gist_id}","starred_url":"https://api.github.com/users/license2e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/license2e/subscriptions","organizations_url":"https://api.github.com/users/license2e/orgs","repos_url":"https://api.github.com/users/license2e/repos","events_url":"https://api.github.com/users/license2e/events{/privacy}","received_events_url":"https://api.github.com/users/license2e/received_events","type":"User","site_admin":false},"body":"Pull Request Template ------------------------\r\n* Check out our Pull Request Guidelines here: https://github.com/serverless/serverless/blob/v1.0/CONTRIBUTING.md\r\n\r\n##### Status:\r\n\r\nReady/In Development/Hold\r\n\r\n##### Description:\r\n\r\n##### Todos:\r\n\r\n- [x] Write tests\r\n\r\nSigned-off-by: Ilya Shindyapin <ilya@shindyapin.com>","created_at":"2016-07-30T00:22:23Z","updated_at":"2016-08-01T11:23:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8853e40743323999d4c1c7b6a347f7cd9d76799","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/serverless/serverless/pulls/1712/commits","review_comments_url":"https://api.github.com/repos/serverless/serverless/pulls/1712/comments","review_comment_url":"https://api.github.com/repos/serverless/serverless/pulls/comments{/number}","comments_url":"https://api.github.com/repos/serverless/serverless/issues/1712/comments","statuses_url":"https://api.github.com/repos/serverless/serverless/statuses/81cc13d05c83603c904ae7e0e75f1aacb81f0a20","head":{"label":"license2e:add-aws-golang-templates-v3","ref":"add-aws-golang-templates-v3","sha":"81cc13d05c83603c904ae7e0e75f1aacb81f0a20","user":{"login":"license2e","id":7691847,"avatar_url":"https://avatars.githubusercontent.com/u/7691847?v=3","gravatar_id":"","url":"https://api.github.com/users/license2e","html_url":"https://github.com/license2e","followers_url":"https://api.github.com/users/license2e/followers","following_url":"https://api.github.com/users/license2e/following{/other_user}","gists_url":"https://api.github.com/users/license2e/gists{/gist_id}","starred_url":"https://api.github.com/users/license2e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/license2e/subscriptions","organizations_url":"https://api.github.com/users/license2e/orgs","repos_url":"https://api.github.com/users/license2e/repos","events_url":"https://api.github.com/users/license2e/events{/privacy}","received_events_url":"https://api.github.com/users/license2e/received_events","type":"User","site_admin":false},"repo":{"id":61157891,"name":"serverless","full_name":"license2e/serverless","owner":{"login":"license2e","id":7691847,"avatar_url":"https://avatars.githubusercontent.com/u/7691847?v=3","gravatar_id":"","url":"https://api.github.com/users/license2e","html_url":"https://github.com/license2e","followers_url":"https://api.github.com/users/license2e/followers","following_url":"https://api.github.com/users/license2e/following{/other_user}","gists_url":"https://api.github.com/users/license2e/gists{/gist_id}","starred_url":"https://api.github.com/users/license2e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/license2e/subscriptions","organizations_url":"https://api.github.com/users/license2e/orgs","repos_url":"https://api.github.com/users/license2e/repos","events_url":"https://api.github.com/users/license2e/events{/privacy}","received_events_url":"https://api.github.com/users/license2e/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/license2e/serverless","description":"Serverless Framework – Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more! – ","fork":true,"url":"https://api.github.com/repos/license2e/serverless","forks_url":"https://api.github.com/repos/license2e/serverless/forks","keys_url":"https://api.github.com/repos/license2e/serverless/keys{/key_id}","collaborators_url":"https://api.github.com/repos/license2e/serverless/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/license2e/serverless/teams","hooks_url":"https://api.github.com/repos/license2e/serverless/hooks","issue_events_url":"https://api.github.com/repos/license2e/serverless/issues/events{/number}","events_url":"https://api.github.com/repos/license2e/serverless/events","assignees_url":"https://api.github.com/repos/license2e/serverless/assignees{/user}","branches_url":"https://api.github.com/repos/license2e/serverless/branches{/branch}","tags_url":"https://api.github.com/repos/license2e/serverless/tags","blobs_url":"https://api.github.com/repos/license2e/serverless/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/license2e/serverless/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/license2e/serverless/git/refs{/sha}","trees_url":"https://api.github.com/repos/license2e/serverless/git/trees{/sha}","statuses_url":"https://api.github.com/repos/license2e/serverless/statuses/{sha}","languages_url":"https://api.github.com/repos/license2e/serverless/languages","stargazers_url":"https://api.github.com/repos/license2e/serverless/stargazers","contributors_url":"https://api.github.com/repos/license2e/serverless/contributors","subscribers_url":"https://api.github.com/repos/license2e/serverless/subscribers","subscription_url":"https://api.github.com/repos/license2e/serverless/subscription","commits_url":"https://api.github.com/repos/license2e/serverless/commits{/sha}","git_commits_url":"https://api.github.com/repos/license2e/serverless/git/commits{/sha}","comments_url":"https://api.github.com/repos/license2e/serverless/comments{/number}","issue_comment_url":"https://api.github.com/repos/license2e/serverless/issues/comments{/number}","contents_url":"https://api.github.com/repos/license2e/serverless/contents/{+path}","compare_url":"https://api.github.com/repos/license2e/serverless/compare/{base}...{head}","merges_url":"https://api.github.com/repos/license2e/serverless/merges","archive_url":"https://api.github.com/repos/license2e/serverless/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/license2e/serverless/downloads","issues_url":"https://api.github.com/repos/license2e/serverless/issues{/number}","pulls_url":"https://api.github.com/repos/license2e/serverless/pulls{/number}","milestones_url":"https://api.github.com/repos/license2e/serverless/milestones{/number}","notifications_url":"https://api.github.com/repos/license2e/serverless/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/license2e/serverless/labels{/name}","releases_url":"https://api.github.com/repos/license2e/serverless/releases{/id}","deployments_url":"https://api.github.com/repos/license2e/serverless/deployments","created_at":"2016-06-14T21:47:00Z","updated_at":"2016-06-14T21:47:02Z","pushed_at":"2016-07-30T00:21:25Z","git_url":"git://github.com/license2e/serverless.git","ssh_url":"git@github.com:license2e/serverless.git","clone_url":"https://github.com/license2e/serverless.git","svn_url":"https://github.com/license2e/serverless","homepage":"http://www.serverless.com","size":70663,"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":"serverless:v1.0","ref":"v1.0","sha":"6432b9dd3e75f2447f6c33afd3ed48eba92d1ac7","user":{"login":"serverless","id":13742415,"avatar_url":"https://avatars.githubusercontent.com/u/13742415?v=3","gravatar_id":"","url":"https://api.github.com/users/serverless","html_url":"https://github.com/serverless","followers_url":"https://api.github.com/users/serverless/followers","following_url":"https://api.github.com/users/serverless/following{/other_user}","gists_url":"https://api.github.com/users/serverless/gists{/gist_id}","starred_url":"https://api.github.com/users/serverless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serverless/subscriptions","organizations_url":"https://api.github.com/users/serverless/orgs","repos_url":"https://api.github.com/users/serverless/repos","events_url":"https://api.github.com/users/serverless/events{/privacy}","received_events_url":"https://api.github.com/users/serverless/received_events","type":"Organization","site_admin":false},"repo":{"id":34302698,"name":"serverless","full_name":"serverless/serverless","owner":{"login":"serverless","id":13742415,"avatar_url":"https://avatars.githubusercontent.com/u/13742415?v=3","gravatar_id":"","url":"https://api.github.com/users/serverless","html_url":"https://github.com/serverless","followers_url":"https://api.github.com/users/serverless/followers","following_url":"https://api.github.com/users/serverless/following{/other_user}","gists_url":"https://api.github.com/users/serverless/gists{/gist_id}","starred_url":"https://api.github.com/users/serverless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serverless/subscriptions","organizations_url":"https://api.github.com/users/serverless/orgs","repos_url":"https://api.github.com/users/serverless/repos","events_url":"https://api.github.com/users/serverless/events{/privacy}","received_events_url":"https://api.github.com/users/serverless/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/serverless/serverless","description":"Serverless Framework – Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more! – ","fork":false,"url":"https://api.github.com/repos/serverless/serverless","forks_url":"https://api.github.com/repos/serverless/serverless/forks","keys_url":"https://api.github.com/repos/serverless/serverless/keys{/key_id}","collaborators_url":"https://api.github.com/repos/serverless/serverless/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/serverless/serverless/teams","hooks_url":"https://api.github.com/repos/serverless/serverless/hooks","issue_events_url":"https://api.github.com/repos/serverless/serverless/issues/events{/number}","events_url":"https://api.github.com/repos/serverless/serverless/events","assignees_url":"https://api.github.com/repos/serverless/serverless/assignees{/user}","branches_url":"https://api.github.com/repos/serverless/serverless/branches{/branch}","tags_url":"https://api.github.com/repos/serverless/serverless/tags","blobs_url":"https://api.github.com/repos/serverless/serverless/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/serverless/serverless/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/serverless/serverless/git/refs{/sha}","trees_url":"https://api.github.com/repos/serverless/serverless/git/trees{/sha}","statuses_url":"https://api.github.com/repos/serverless/serverless/statuses/{sha}","languages_url":"https://api.github.com/repos/serverless/serverless/languages","stargazers_url":"https://api.github.com/repos/serverless/serverless/stargazers","contributors_url":"https://api.github.com/repos/serverless/serverless/contributors","subscribers_url":"https://api.github.com/repos/serverless/serverless/subscribers","subscription_url":"https://api.github.com/repos/serverless/serverless/subscription","commits_url":"https://api.github.com/repos/serverless/serverless/commits{/sha}","git_commits_url":"https://api.github.com/repos/serverless/serverless/git/commits{/sha}","comments_url":"https://api.github.com/repos/serverless/serverless/comments{/number}","issue_comment_url":"https://api.github.com/repos/serverless/serverless/issues/comments{/number}","contents_url":"https://api.github.com/repos/serverless/serverless/contents/{+path}","compare_url":"https://api.github.com/repos/serverless/serverless/compare/{base}...{head}","merges_url":"https://api.github.com/repos/serverless/serverless/merges","archive_url":"https://api.github.com/repos/serverless/serverless/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/serverless/serverless/downloads","issues_url":"https://api.github.com/repos/serverless/serverless/issues{/number}","pulls_url":"https://api.github.com/repos/serverless/serverless/pulls{/number}","milestones_url":"https://api.github.com/repos/serverless/serverless/milestones{/number}","notifications_url":"https://api.github.com/repos/serverless/serverless/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/serverless/serverless/labels{/name}","releases_url":"https://api.github.com/repos/serverless/serverless/releases{/id}","deployments_url":"https://api.github.com/repos/serverless/serverless/deployments","created_at":"2015-04-21T03:48:40Z","updated_at":"2016-08-01T09:34:56Z","pushed_at":"2016-08-01T11:13:03Z","git_url":"git://github.com/serverless/serverless.git","ssh_url":"git@github.com:serverless/serverless.git","clone_url":"https://github.com/serverless/serverless.git","svn_url":"https://github.com/serverless/serverless","homepage":"http://www.serverless.com","size":72757,"stargazers_count":9636,"watchers_count":9636,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":642,"mirror_url":null,"open_issues_count":282,"forks":642,"open_issues":282,"watchers":9636,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/serverless/serverless/pulls/1712"},"html":{"href":"https://github.com/serverless/serverless/pull/1712"},"issue":{"href":"https://api.github.com/repos/serverless/serverless/issues/1712"},"comments":{"href":"https://api.github.com/repos/serverless/serverless/issues/1712/comments"},"review_comments":{"href":"https://api.github.com/repos/serverless/serverless/pulls/1712/comments"},"review_comment":{"href":"https://api.github.com/repos/serverless/serverless/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/serverless/serverless/pulls/1712/commits"},"statuses":{"href":"https://api.github.com/repos/serverless/serverless/statuses/81cc13d05c83603c904ae7e0e75f1aacb81f0a20"}}}}
{"actor":{"display_login":"flomotlik"}}