{"action":"created","comment":{"url":"https://api.github.com/repos/saksdirect/org-structure-api/pulls/comments/232713992","pull_request_review_id":173970944,"id":232713992,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjcxMzk5Mg==","diff_hunk":"@@ -1,20 +1,27 @@\n+const dynamo = require('./services/dynamo');\n const github = require('./services/github');\n \n+function handleError(error) {\n+    console.log('error detected: ' + error);\n+}\n+\n exports.handler = async (event) => {\n     var response;\n     const ref = JSON.parse(event.body).ref;\n \n     if (ref === 'refs/heads/master') {\n+        console.log('notified about change on master');\n         response = github.fetchContent('members.csv').then(members => {\n             return github.fetchContent('teams.csv').then(teams => {","path":"data-refresh/src/lambda.js","position":15,"original_position":15,"commit_id":"f4552a562de93dba7cc97d432cd3896bd379358a","original_commit_id":"f4552a562de93dba7cc97d432cd3896bd379358a","user":{"login":"barryoneill","id":885049,"node_id":"MDQ6VXNlcjg4NTA0OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/885049?v=4","gravatar_id":"","url":"https://api.github.com/users/barryoneill","html_url":"https://github.com/barryoneill","followers_url":"https://api.github.com/users/barryoneill/followers","following_url":"https://api.github.com/users/barryoneill/following{/other_user}","gists_url":"https://api.github.com/users/barryoneill/gists{/gist_id}","starred_url":"https://api.github.com/users/barryoneill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barryoneill/subscriptions","organizations_url":"https://api.github.com/users/barryoneill/orgs","repos_url":"https://api.github.com/users/barryoneill/repos","events_url":"https://api.github.com/users/barryoneill/events{/privacy}","received_events_url":"https://api.github.com/users/barryoneill/received_events","type":"User","site_admin":false},"body":"the `(members, teams)` should be deconstructing the array, you can just access the two vars.. ","created_at":"2018-11-12T15:59:54Z","updated_at":"2018-11-12T15:59:55Z","html_url":"https://github.com/saksdirect/org-structure-api/pull/10#discussion_r232713992","pull_request_url":"https://api.github.com/repos/saksdirect/org-structure-api/pulls/10","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/saksdirect/org-structure-api/pulls/comments/232713992"},"html":{"href":"https://github.com/saksdirect/org-structure-api/pull/10#discussion_r232713992"},"pull_request":{"href":"https://api.github.com/repos/saksdirect/org-structure-api/pulls/10"}},"in_reply_to_id":232710573},"pull_request":{"url":"https://api.github.com/repos/saksdirect/org-structure-api/pulls/10","id":230169516,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwMTY5NTE2","html_url":"https://github.com/saksdirect/org-structure-api/pull/10","diff_url":"https://github.com/saksdirect/org-structure-api/pull/10.diff","patch_url":"https://github.com/saksdirect/org-structure-api/pull/10.patch","issue_url":"https://api.github.com/repos/saksdirect/org-structure-api/issues/10","number":10,"state":"open","locked":false,"title":"Store github contents in dynamo","user":{"login":"jkenny","id":1324338,"node_id":"MDQ6VXNlcjEzMjQzMzg=","avatar_url":"https://avatars2.githubusercontent.com/u/1324338?v=4","gravatar_id":"","url":"https://api.github.com/users/jkenny","html_url":"https://github.com/jkenny","followers_url":"https://api.github.com/users/jkenny/followers","following_url":"https://api.github.com/users/jkenny/following{/other_user}","gists_url":"https://api.github.com/users/jkenny/gists{/gist_id}","starred_url":"https://api.github.com/users/jkenny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkenny/subscriptions","organizations_url":"https://api.github.com/users/jkenny/orgs","repos_url":"https://api.github.com/users/jkenny/repos","events_url":"https://api.github.com/users/jkenny/events{/privacy}","received_events_url":"https://api.github.com/users/jkenny/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-12T15:18:30Z","updated_at":"2018-11-12T15:59:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"44b7d441a38e398e2f50e7ca56367303bb0d9149","assignee":null,"assignees":[],"requested_reviewers":[{"login":"kinquartz","id":4909844,"node_id":"MDQ6VXNlcjQ5MDk4NDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/4909844?v=4","gravatar_id":"","url":"https://api.github.com/users/kinquartz","html_url":"https://github.com/kinquartz","followers_url":"https://api.github.com/users/kinquartz/followers","following_url":"https://api.github.com/users/kinquartz/following{/other_user}","gists_url":"https://api.github.com/users/kinquartz/gists{/gist_id}","starred_url":"https://api.github.com/users/kinquartz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinquartz/subscriptions","organizations_url":"https://api.github.com/users/kinquartz/orgs","repos_url":"https://api.github.com/users/kinquartz/repos","events_url":"https://api.github.com/users/kinquartz/events{/privacy}","received_events_url":"https://api.github.com/users/kinquartz/received_events","type":"User","site_admin":false},{"login":"5tigerjelly","id":15973528,"node_id":"MDQ6VXNlcjE1OTczNTI4","avatar_url":"https://avatars0.githubusercontent.com/u/15973528?v=4","gravatar_id":"","url":"https://api.github.com/users/5tigerjelly","html_url":"https://github.com/5tigerjelly","followers_url":"https://api.github.com/users/5tigerjelly/followers","following_url":"https://api.github.com/users/5tigerjelly/following{/other_user}","gists_url":"https://api.github.com/users/5tigerjelly/gists{/gist_id}","starred_url":"https://api.github.com/users/5tigerjelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5tigerjelly/subscriptions","organizations_url":"https://api.github.com/users/5tigerjelly/orgs","repos_url":"https://api.github.com/users/5tigerjelly/repos","events_url":"https://api.github.com/users/5tigerjelly/events{/privacy}","received_events_url":"https://api.github.com/users/5tigerjelly/received_events","type":"User","site_admin":false},{"login":"dollyds5a","id":18683301,"node_id":"MDQ6VXNlcjE4NjgzMzAx","avatar_url":"https://avatars3.githubusercontent.com/u/18683301?v=4","gravatar_id":"","url":"https://api.github.com/users/dollyds5a","html_url":"https://github.com/dollyds5a","followers_url":"https://api.github.com/users/dollyds5a/followers","following_url":"https://api.github.com/users/dollyds5a/following{/other_user}","gists_url":"https://api.github.com/users/dollyds5a/gists{/gist_id}","starred_url":"https://api.github.com/users/dollyds5a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dollyds5a/subscriptions","organizations_url":"https://api.github.com/users/dollyds5a/orgs","repos_url":"https://api.github.com/users/dollyds5a/repos","events_url":"https://api.github.com/users/dollyds5a/events{/privacy}","received_events_url":"https://api.github.com/users/dollyds5a/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/saksdirect/org-structure-api/pulls/10/commits","review_comments_url":"https://api.github.com/repos/saksdirect/org-structure-api/pulls/10/comments","review_comment_url":"https://api.github.com/repos/saksdirect/org-structure-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/saksdirect/org-structure-api/issues/10/comments","statuses_url":"https://api.github.com/repos/saksdirect/org-structure-api/statuses/f4552a562de93dba7cc97d432cd3896bd379358a","head":{"label":"saksdirect:dynamo_integration","ref":"dynamo_integration","sha":"f4552a562de93dba7cc97d432cd3896bd379358a","user":{"login":"saksdirect","id":1037080,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMzcwODA=","avatar_url":"https://avatars2.githubusercontent.com/u/1037080?v=4","gravatar_id":"","url":"https://api.github.com/users/saksdirect","html_url":"https://github.com/saksdirect","followers_url":"https://api.github.com/users/saksdirect/followers","following_url":"https://api.github.com/users/saksdirect/following{/other_user}","gists_url":"https://api.github.com/users/saksdirect/gists{/gist_id}","starred_url":"https://api.github.com/users/saksdirect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saksdirect/subscriptions","organizations_url":"https://api.github.com/users/saksdirect/orgs","repos_url":"https://api.github.com/users/saksdirect/repos","events_url":"https://api.github.com/users/saksdirect/events{/privacy}","received_events_url":"https://api.github.com/users/saksdirect/received_events","type":"Organization","site_admin":false},"repo":{"id":154850226,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ4NTAyMjY=","name":"org-structure-api","full_name":"saksdirect/org-structure-api","private":false,"owner":{"login":"saksdirect","id":1037080,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMzcwODA=","avatar_url":"https://avatars2.githubusercontent.com/u/1037080?v=4","gravatar_id":"","url":"https://api.github.com/users/saksdirect","html_url":"https://github.com/saksdirect","followers_url":"https://api.github.com/users/saksdirect/followers","following_url":"https://api.github.com/users/saksdirect/following{/other_user}","gists_url":"https://api.github.com/users/saksdirect/gists{/gist_id}","starred_url":"https://api.github.com/users/saksdirect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saksdirect/subscriptions","organizations_url":"https://api.github.com/users/saksdirect/orgs","repos_url":"https://api.github.com/users/saksdirect/repos","events_url":"https://api.github.com/users/saksdirect/events{/privacy}","received_events_url":"https://api.github.com/users/saksdirect/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/saksdirect/org-structure-api","description":null,"fork":false,"url":"https://api.github.com/repos/saksdirect/org-structure-api","forks_url":"https://api.github.com/repos/saksdirect/org-structure-api/forks","keys_url":"https://api.github.com/repos/saksdirect/org-structure-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/saksdirect/org-structure-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/saksdirect/org-structure-api/teams","hooks_url":"https://api.github.com/repos/saksdirect/org-structure-api/hooks","issue_events_url":"https://api.github.com/repos/saksdirect/org-structure-api/issues/events{/number}","events_url":"https://api.github.com/repos/saksdirect/org-structure-api/events","assignees_url":"https://api.github.com/repos/saksdirect/org-structure-api/assignees{/user}","branches_url":"https://api.github.com/repos/saksdirect/org-structure-api/branches{/branch}","tags_url":"https://api.github.com/repos/saksdirect/org-structure-api/tags","blobs_url":"https://api.github.com/repos/saksdirect/org-structure-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/saksdirect/org-structure-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/saksdirect/org-structure-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/saksdirect/org-structure-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/saksdirect/org-structure-api/statuses/{sha}","languages_url":"https://api.github.com/repos/saksdirect/org-structure-api/languages","stargazers_url":"https://api.github.com/repos/saksdirect/org-structure-api/stargazers","contributors_url":"https://api.github.com/repos/saksdirect/org-structure-api/contributors","subscribers_url":"https://api.github.com/repos/saksdirect/org-structure-api/subscribers","subscription_url":"https://api.github.com/repos/saksdirect/org-structure-api/subscription","commits_url":"https://api.github.com/repos/saksdirect/org-structure-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/saksdirect/org-structure-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/saksdirect/org-structure-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/saksdirect/org-structure-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/saksdirect/org-structure-api/contents/{+path}","compare_url":"https://api.github.com/repos/saksdirect/org-structure-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/saksdirect/org-structure-api/merges","archive_url":"https://api.github.com/repos/saksdirect/org-structure-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/saksdirect/org-structure-api/downloads","issues_url":"https://api.github.com/repos/saksdirect/org-structure-api/issues{/number}","pulls_url":"https://api.github.com/repos/saksdirect/org-structure-api/pulls{/number}","milestones_url":"https://api.github.com/repos/saksdirect/org-structure-api/milestones{/number}","notifications_url":"https://api.github.com/repos/saksdirect/org-structure-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/saksdirect/org-structure-api/labels{/name}","releases_url":"https://api.github.com/repos/saksdirect/org-structure-api/releases{/id}","deployments_url":"https://api.github.com/repos/saksdirect/org-structure-api/deployments","created_at":"2018-10-26T14:49:30Z","updated_at":"2018-10-28T10:28:56Z","pushed_at":"2018-11-12T15:35:24Z","git_url":"git://github.com/saksdirect/org-structure-api.git","ssh_url":"git@github.com:saksdirect/org-structure-api.git","clone_url":"https://github.com/saksdirect/org-structure-api.git","svn_url":"https://github.com/saksdirect/org-structure-api","homepage":null,"size":81,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":6,"watchers":1,"default_branch":"master"}},"base":{"label":"saksdirect:master","ref":"master","sha":"4a877efe923912b329c2edd9c2b03dbb7fc1948f","user":{"login":"saksdirect","id":1037080,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMzcwODA=","avatar_url":"https://avatars2.githubusercontent.com/u/1037080?v=4","gravatar_id":"","url":"https://api.github.com/users/saksdirect","html_url":"https://github.com/saksdirect","followers_url":"https://api.github.com/users/saksdirect/followers","following_url":"https://api.github.com/users/saksdirect/following{/other_user}","gists_url":"https://api.github.com/users/saksdirect/gists{/gist_id}","starred_url":"https://api.github.com/users/saksdirect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saksdirect/subscriptions","organizations_url":"https://api.github.com/users/saksdirect/orgs","repos_url":"https://api.github.com/users/saksdirect/repos","events_url":"https://api.github.com/users/saksdirect/events{/privacy}","received_events_url":"https://api.github.com/users/saksdirect/received_events","type":"Organization","site_admin":false},"repo":{"id":154850226,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ4NTAyMjY=","name":"org-structure-api","full_name":"saksdirect/org-structure-api","private":false,"owner":{"login":"saksdirect","id":1037080,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMzcwODA=","avatar_url":"https://avatars2.githubusercontent.com/u/1037080?v=4","gravatar_id":"","url":"https://api.github.com/users/saksdirect","html_url":"https://github.com/saksdirect","followers_url":"https://api.github.com/users/saksdirect/followers","following_url":"https://api.github.com/users/saksdirect/following{/other_user}","gists_url":"https://api.github.com/users/saksdirect/gists{/gist_id}","starred_url":"https://api.github.com/users/saksdirect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saksdirect/subscriptions","organizations_url":"https://api.github.com/users/saksdirect/orgs","repos_url":"https://api.github.com/users/saksdirect/repos","events_url":"https://api.github.com/users/saksdirect/events{/privacy}","received_events_url":"https://api.github.com/users/saksdirect/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/saksdirect/org-structure-api","description":null,"fork":false,"url":"https://api.github.com/repos/saksdirect/org-structure-api","forks_url":"https://api.github.com/repos/saksdirect/org-structure-api/forks","keys_url":"https://api.github.com/repos/saksdirect/org-structure-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/saksdirect/org-structure-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/saksdirect/org-structure-api/teams","hooks_url":"https://api.github.com/repos/saksdirect/org-structure-api/hooks","issue_events_url":"https://api.github.com/repos/saksdirect/org-structure-api/issues/events{/number}","events_url":"https://api.github.com/repos/saksdirect/org-structure-api/events","assignees_url":"https://api.github.com/repos/saksdirect/org-structure-api/assignees{/user}","branches_url":"https://api.github.com/repos/saksdirect/org-structure-api/branches{/branch}","tags_url":"https://api.github.com/repos/saksdirect/org-structure-api/tags","blobs_url":"https://api.github.com/repos/saksdirect/org-structure-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/saksdirect/org-structure-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/saksdirect/org-structure-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/saksdirect/org-structure-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/saksdirect/org-structure-api/statuses/{sha}","languages_url":"https://api.github.com/repos/saksdirect/org-structure-api/languages","stargazers_url":"https://api.github.com/repos/saksdirect/org-structure-api/stargazers","contributors_url":"https://api.github.com/repos/saksdirect/org-structure-api/contributors","subscribers_url":"https://api.github.com/repos/saksdirect/org-structure-api/subscribers","subscription_url":"https://api.github.com/repos/saksdirect/org-structure-api/subscription","commits_url":"https://api.github.com/repos/saksdirect/org-structure-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/saksdirect/org-structure-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/saksdirect/org-structure-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/saksdirect/org-structure-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/saksdirect/org-structure-api/contents/{+path}","compare_url":"https://api.github.com/repos/saksdirect/org-structure-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/saksdirect/org-structure-api/merges","archive_url":"https://api.github.com/repos/saksdirect/org-structure-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/saksdirect/org-structure-api/downloads","issues_url":"https://api.github.com/repos/saksdirect/org-structure-api/issues{/number}","pulls_url":"https://api.github.com/repos/saksdirect/org-structure-api/pulls{/number}","milestones_url":"https://api.github.com/repos/saksdirect/org-structure-api/milestones{/number}","notifications_url":"https://api.github.com/repos/saksdirect/org-structure-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/saksdirect/org-structure-api/labels{/name}","releases_url":"https://api.github.com/repos/saksdirect/org-structure-api/releases{/id}","deployments_url":"https://api.github.com/repos/saksdirect/org-structure-api/deployments","created_at":"2018-10-26T14:49:30Z","updated_at":"2018-10-28T10:28:56Z","pushed_at":"2018-11-12T15:35:24Z","git_url":"git://github.com/saksdirect/org-structure-api.git","ssh_url":"git@github.com:saksdirect/org-structure-api.git","clone_url":"https://github.com/saksdirect/org-structure-api.git","svn_url":"https://github.com/saksdirect/org-structure-api","homepage":null,"size":81,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/saksdirect/org-structure-api/pulls/10"},"html":{"href":"https://github.com/saksdirect/org-structure-api/pull/10"},"issue":{"href":"https://api.github.com/repos/saksdirect/org-structure-api/issues/10"},"comments":{"href":"https://api.github.com/repos/saksdirect/org-structure-api/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/saksdirect/org-structure-api/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/saksdirect/org-structure-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/saksdirect/org-structure-api/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/saksdirect/org-structure-api/statuses/f4552a562de93dba7cc97d432cd3896bd379358a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"barryoneill"}}