{"action":"created","comment":{"url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/pulls/comments/323345382","pull_request_review_id":286925819,"id":323345382,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyMzM0NTM4Mg==","diff_hunk":"@@ -35,8 +40,22 @@ function dispatchMessages(event: string, payload: GithubPayload): void {\n   }\n \n   const message = TranslateGithubPayload(event, payload)\n-  db.getChatsByRepository(repo).forEach(chatUrl =>\n-    SendBasecampChat(chatUrl, message)\n+  db.getChatsByRepository(repo).forEach(\n+    (chatUrl): void => {\n+      axios","path":"app/server/hook.ts","position":33,"original_position":33,"commit_id":"7562797081ef19dea86592ba9ffcbd0c422318e7","original_commit_id":"45ea5c85a6abfeef84a959bc738400b64970089e","user":{"login":"levibostian","id":2041082,"node_id":"MDQ6VXNlcjIwNDEwODI=","avatar_url":"https://avatars1.githubusercontent.com/u/2041082?v=4","gravatar_id":"","url":"https://api.github.com/users/levibostian","html_url":"https://github.com/levibostian","followers_url":"https://api.github.com/users/levibostian/followers","following_url":"https://api.github.com/users/levibostian/following{/other_user}","gists_url":"https://api.github.com/users/levibostian/gists{/gist_id}","starred_url":"https://api.github.com/users/levibostian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levibostian/subscriptions","organizations_url":"https://api.github.com/users/levibostian/orgs","repos_url":"https://api.github.com/users/levibostian/repos","events_url":"https://api.github.com/users/levibostian/events{/privacy}","received_events_url":"https://api.github.com/users/levibostian/received_events","type":"User","site_admin":false},"body":"No, what you have is fine. I don't expect it to run without `await` or `then()`, but maybe because the promise is in a loop that has something to do with it. Not sure! \r\n\r\nAs long as we have test coverage on this code, it looks good. ","created_at":"2019-09-11T16:41:35Z","updated_at":"2019-09-11T16:41:35Z","html_url":"https://github.com/foundersclubsoftware/Basecamp-Github_Chatbot/pull/13#discussion_r323345382","pull_request_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/pulls/13","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/pulls/comments/323345382"},"html":{"href":"https://github.com/foundersclubsoftware/Basecamp-Github_Chatbot/pull/13#discussion_r323345382"},"pull_request":{"href":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/pulls/13"}},"in_reply_to_id":322020344},"pull_request":{"url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/pulls/13","id":313018330,"node_id":"MDExOlB1bGxSZXF1ZXN0MzEzMDE4MzMw","html_url":"https://github.com/foundersclubsoftware/Basecamp-Github_Chatbot/pull/13","diff_url":"https://github.com/foundersclubsoftware/Basecamp-Github_Chatbot/pull/13.diff","patch_url":"https://github.com/foundersclubsoftware/Basecamp-Github_Chatbot/pull/13.patch","issue_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/issues/13","number":13,"state":"open","locked":false,"title":"Added unit tests","user":{"login":"thrymgjol","id":8965646,"node_id":"MDQ6VXNlcjg5NjU2NDY=","avatar_url":"https://avatars2.githubusercontent.com/u/8965646?v=4","gravatar_id":"","url":"https://api.github.com/users/thrymgjol","html_url":"https://github.com/thrymgjol","followers_url":"https://api.github.com/users/thrymgjol/followers","following_url":"https://api.github.com/users/thrymgjol/following{/other_user}","gists_url":"https://api.github.com/users/thrymgjol/gists{/gist_id}","starred_url":"https://api.github.com/users/thrymgjol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thrymgjol/subscriptions","organizations_url":"https://api.github.com/users/thrymgjol/orgs","repos_url":"https://api.github.com/users/thrymgjol/repos","events_url":"https://api.github.com/users/thrymgjol/events{/privacy}","received_events_url":"https://api.github.com/users/thrymgjol/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-09-01T09:43:36Z","updated_at":"2019-09-11T16:41:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5b17ab2c4201fc1dd95215fd3d527d363604a60","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/pulls/13/commits","review_comments_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/pulls/13/comments","review_comment_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/issues/13/comments","statuses_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/statuses/7562797081ef19dea86592ba9ffcbd0c422318e7","head":{"label":"foundersclubsoftware:tests-unit","ref":"tests-unit","sha":"7562797081ef19dea86592ba9ffcbd0c422318e7","user":{"login":"foundersclubsoftware","id":46826864,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ2ODI2ODY0","avatar_url":"https://avatars3.githubusercontent.com/u/46826864?v=4","gravatar_id":"","url":"https://api.github.com/users/foundersclubsoftware","html_url":"https://github.com/foundersclubsoftware","followers_url":"https://api.github.com/users/foundersclubsoftware/followers","following_url":"https://api.github.com/users/foundersclubsoftware/following{/other_user}","gists_url":"https://api.github.com/users/foundersclubsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/foundersclubsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foundersclubsoftware/subscriptions","organizations_url":"https://api.github.com/users/foundersclubsoftware/orgs","repos_url":"https://api.github.com/users/foundersclubsoftware/repos","events_url":"https://api.github.com/users/foundersclubsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/foundersclubsoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":189405682,"node_id":"MDEwOlJlcG9zaXRvcnkxODk0MDU2ODI=","name":"Basecamp-Github_Chatbot","full_name":"foundersclubsoftware/Basecamp-Github_Chatbot","private":false,"owner":{"login":"foundersclubsoftware","id":46826864,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ2ODI2ODY0","avatar_url":"https://avatars3.githubusercontent.com/u/46826864?v=4","gravatar_id":"","url":"https://api.github.com/users/foundersclubsoftware","html_url":"https://github.com/foundersclubsoftware","followers_url":"https://api.github.com/users/foundersclubsoftware/followers","following_url":"https://api.github.com/users/foundersclubsoftware/following{/other_user}","gists_url":"https://api.github.com/users/foundersclubsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/foundersclubsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foundersclubsoftware/subscriptions","organizations_url":"https://api.github.com/users/foundersclubsoftware/orgs","repos_url":"https://api.github.com/users/foundersclubsoftware/repos","events_url":"https://api.github.com/users/foundersclubsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/foundersclubsoftware/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/foundersclubsoftware/Basecamp-Github_Chatbot","description":"Notify your Basecamp Campfire with various events from GitHub repos. ","fork":false,"url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot","forks_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/forks","keys_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/teams","hooks_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/hooks","issue_events_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/issues/events{/number}","events_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/events","assignees_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/assignees{/user}","branches_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/branches{/branch}","tags_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/tags","blobs_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/statuses/{sha}","languages_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/languages","stargazers_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/stargazers","contributors_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/contributors","subscribers_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/subscribers","subscription_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/subscription","commits_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/contents/{+path}","compare_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/merges","archive_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/downloads","issues_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/issues{/number}","pulls_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/pulls{/number}","milestones_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/milestones{/number}","notifications_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/labels{/name}","releases_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/releases{/id}","deployments_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/deployments","created_at":"2019-05-30T11:58:37Z","updated_at":"2019-08-29T05:20:09Z","pushed_at":"2019-09-11T01:38:43Z","git_url":"git://github.com/foundersclubsoftware/Basecamp-Github_Chatbot.git","ssh_url":"git@github.com:foundersclubsoftware/Basecamp-Github_Chatbot.git","clone_url":"https://github.com/foundersclubsoftware/Basecamp-Github_Chatbot.git","svn_url":"https://github.com/foundersclubsoftware/Basecamp-Github_Chatbot","homepage":"","size":527,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"foundersclubsoftware:version-0.2.1","ref":"version-0.2.1","sha":"fd483c7e7c57cbdf4d4cfd64ccfdc256c37ab745","user":{"login":"foundersclubsoftware","id":46826864,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ2ODI2ODY0","avatar_url":"https://avatars3.githubusercontent.com/u/46826864?v=4","gravatar_id":"","url":"https://api.github.com/users/foundersclubsoftware","html_url":"https://github.com/foundersclubsoftware","followers_url":"https://api.github.com/users/foundersclubsoftware/followers","following_url":"https://api.github.com/users/foundersclubsoftware/following{/other_user}","gists_url":"https://api.github.com/users/foundersclubsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/foundersclubsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foundersclubsoftware/subscriptions","organizations_url":"https://api.github.com/users/foundersclubsoftware/orgs","repos_url":"https://api.github.com/users/foundersclubsoftware/repos","events_url":"https://api.github.com/users/foundersclubsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/foundersclubsoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":189405682,"node_id":"MDEwOlJlcG9zaXRvcnkxODk0MDU2ODI=","name":"Basecamp-Github_Chatbot","full_name":"foundersclubsoftware/Basecamp-Github_Chatbot","private":false,"owner":{"login":"foundersclubsoftware","id":46826864,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ2ODI2ODY0","avatar_url":"https://avatars3.githubusercontent.com/u/46826864?v=4","gravatar_id":"","url":"https://api.github.com/users/foundersclubsoftware","html_url":"https://github.com/foundersclubsoftware","followers_url":"https://api.github.com/users/foundersclubsoftware/followers","following_url":"https://api.github.com/users/foundersclubsoftware/following{/other_user}","gists_url":"https://api.github.com/users/foundersclubsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/foundersclubsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foundersclubsoftware/subscriptions","organizations_url":"https://api.github.com/users/foundersclubsoftware/orgs","repos_url":"https://api.github.com/users/foundersclubsoftware/repos","events_url":"https://api.github.com/users/foundersclubsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/foundersclubsoftware/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/foundersclubsoftware/Basecamp-Github_Chatbot","description":"Notify your Basecamp Campfire with various events from GitHub repos. ","fork":false,"url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot","forks_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/forks","keys_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/teams","hooks_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/hooks","issue_events_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/issues/events{/number}","events_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/events","assignees_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/assignees{/user}","branches_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/branches{/branch}","tags_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/tags","blobs_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/statuses/{sha}","languages_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/languages","stargazers_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/stargazers","contributors_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/contributors","subscribers_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/subscribers","subscription_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/subscription","commits_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/contents/{+path}","compare_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/merges","archive_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/downloads","issues_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/issues{/number}","pulls_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/pulls{/number}","milestones_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/milestones{/number}","notifications_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/labels{/name}","releases_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/releases{/id}","deployments_url":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/deployments","created_at":"2019-05-30T11:58:37Z","updated_at":"2019-08-29T05:20:09Z","pushed_at":"2019-09-11T01:38:43Z","git_url":"git://github.com/foundersclubsoftware/Basecamp-Github_Chatbot.git","ssh_url":"git@github.com:foundersclubsoftware/Basecamp-Github_Chatbot.git","clone_url":"https://github.com/foundersclubsoftware/Basecamp-Github_Chatbot.git","svn_url":"https://github.com/foundersclubsoftware/Basecamp-Github_Chatbot","homepage":"","size":527,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/pulls/13"},"html":{"href":"https://github.com/foundersclubsoftware/Basecamp-Github_Chatbot/pull/13"},"issue":{"href":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/issues/13"},"comments":{"href":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/foundersclubsoftware/Basecamp-Github_Chatbot/statuses/7562797081ef19dea86592ba9ffcbd0c422318e7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"levibostian"}}