{"action":"created","comment":{"url":"https://api.github.com/repos/localz/consul-backup-restore/pulls/comments/188498975","pull_request_review_id":120488289,"id":188498975,"diff_hunk":"@@ -0,0 +1,4 @@\n+const AWS = require('aws-sdk')\n+const s3 = new AWS.S3()","path":"src/s3Util.js","position":2,"original_position":2,"commit_id":"4e499d6f005679d13eb0b434c689aa07e5ea18f7","original_commit_id":"4e499d6f005679d13eb0b434c689aa07e5ea18f7","user":{"login":"nathanmalishev","id":7652207,"avatar_url":"https://avatars0.githubusercontent.com/u/7652207?v=4","gravatar_id":"","url":"https://api.github.com/users/nathanmalishev","html_url":"https://github.com/nathanmalishev","followers_url":"https://api.github.com/users/nathanmalishev/followers","following_url":"https://api.github.com/users/nathanmalishev/following{/other_user}","gists_url":"https://api.github.com/users/nathanmalishev/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanmalishev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanmalishev/subscriptions","organizations_url":"https://api.github.com/users/nathanmalishev/orgs","repos_url":"https://api.github.com/users/nathanmalishev/repos","events_url":"https://api.github.com/users/nathanmalishev/events{/privacy}","received_events_url":"https://api.github.com/users/nathanmalishev/received_events","type":"User","site_admin":false},"body":"Yeah it was mainly for testing -- so there are no weird race conditions and i can mock it easy\r\n","created_at":"2018-05-16T04:14:14Z","updated_at":"2018-05-16T04:14:14Z","html_url":"https://github.com/localz/consul-backup-restore/pull/6#discussion_r188498975","pull_request_url":"https://api.github.com/repos/localz/consul-backup-restore/pulls/6","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/localz/consul-backup-restore/pulls/comments/188498975"},"html":{"href":"https://github.com/localz/consul-backup-restore/pull/6#discussion_r188498975"},"pull_request":{"href":"https://api.github.com/repos/localz/consul-backup-restore/pulls/6"}},"in_reply_to_id":188497248},"pull_request":{"url":"https://api.github.com/repos/localz/consul-backup-restore/pulls/6","id":188308899,"html_url":"https://github.com/localz/consul-backup-restore/pull/6","diff_url":"https://github.com/localz/consul-backup-restore/pull/6.diff","patch_url":"https://github.com/localz/consul-backup-restore/pull/6.patch","issue_url":"https://api.github.com/repos/localz/consul-backup-restore/issues/6","number":6,"state":"open","locked":false,"title":"Refactor","user":{"login":"nathanmalishev","id":7652207,"avatar_url":"https://avatars0.githubusercontent.com/u/7652207?v=4","gravatar_id":"","url":"https://api.github.com/users/nathanmalishev","html_url":"https://github.com/nathanmalishev","followers_url":"https://api.github.com/users/nathanmalishev/followers","following_url":"https://api.github.com/users/nathanmalishev/following{/other_user}","gists_url":"https://api.github.com/users/nathanmalishev/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanmalishev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanmalishev/subscriptions","organizations_url":"https://api.github.com/users/nathanmalishev/orgs","repos_url":"https://api.github.com/users/nathanmalishev/repos","events_url":"https://api.github.com/users/nathanmalishev/events{/privacy}","received_events_url":"https://api.github.com/users/nathanmalishev/received_events","type":"User","site_admin":false},"body":"Refactored the code\r\n- Replaced mocha with Jest\r\n- Rewrote the tests\r\n- Fixed some bugs where errors weren't being caught","created_at":"2018-05-16T03:19:35Z","updated_at":"2018-05-16T04:14:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8c0a9225dad4b9d91104e30591a3cbeaa10d5ffc","assignee":null,"assignees":[],"requested_reviewers":[{"login":"markgandy","id":3522980,"avatar_url":"https://avatars3.githubusercontent.com/u/3522980?v=4","gravatar_id":"","url":"https://api.github.com/users/markgandy","html_url":"https://github.com/markgandy","followers_url":"https://api.github.com/users/markgandy/followers","following_url":"https://api.github.com/users/markgandy/following{/other_user}","gists_url":"https://api.github.com/users/markgandy/gists{/gist_id}","starred_url":"https://api.github.com/users/markgandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markgandy/subscriptions","organizations_url":"https://api.github.com/users/markgandy/orgs","repos_url":"https://api.github.com/users/markgandy/repos","events_url":"https://api.github.com/users/markgandy/events{/privacy}","received_events_url":"https://api.github.com/users/markgandy/received_events","type":"User","site_admin":false},{"login":"steveril","id":14990738,"avatar_url":"https://avatars1.githubusercontent.com/u/14990738?v=4","gravatar_id":"","url":"https://api.github.com/users/steveril","html_url":"https://github.com/steveril","followers_url":"https://api.github.com/users/steveril/followers","following_url":"https://api.github.com/users/steveril/following{/other_user}","gists_url":"https://api.github.com/users/steveril/gists{/gist_id}","starred_url":"https://api.github.com/users/steveril/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveril/subscriptions","organizations_url":"https://api.github.com/users/steveril/orgs","repos_url":"https://api.github.com/users/steveril/repos","events_url":"https://api.github.com/users/steveril/events{/privacy}","received_events_url":"https://api.github.com/users/steveril/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/localz/consul-backup-restore/pulls/6/commits","review_comments_url":"https://api.github.com/repos/localz/consul-backup-restore/pulls/6/comments","review_comment_url":"https://api.github.com/repos/localz/consul-backup-restore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/localz/consul-backup-restore/issues/6/comments","statuses_url":"https://api.github.com/repos/localz/consul-backup-restore/statuses/4e499d6f005679d13eb0b434c689aa07e5ea18f7","head":{"label":"localz:feature/restore_certain_prefix","ref":"feature/restore_certain_prefix","sha":"4e499d6f005679d13eb0b434c689aa07e5ea18f7","user":{"login":"localz","id":7599125,"avatar_url":"https://avatars3.githubusercontent.com/u/7599125?v=4","gravatar_id":"","url":"https://api.github.com/users/localz","html_url":"https://github.com/localz","followers_url":"https://api.github.com/users/localz/followers","following_url":"https://api.github.com/users/localz/following{/other_user}","gists_url":"https://api.github.com/users/localz/gists{/gist_id}","starred_url":"https://api.github.com/users/localz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/localz/subscriptions","organizations_url":"https://api.github.com/users/localz/orgs","repos_url":"https://api.github.com/users/localz/repos","events_url":"https://api.github.com/users/localz/events{/privacy}","received_events_url":"https://api.github.com/users/localz/received_events","type":"Organization","site_admin":false},"repo":{"id":63390909,"name":"consul-backup-restore","full_name":"localz/consul-backup-restore","owner":{"login":"localz","id":7599125,"avatar_url":"https://avatars3.githubusercontent.com/u/7599125?v=4","gravatar_id":"","url":"https://api.github.com/users/localz","html_url":"https://github.com/localz","followers_url":"https://api.github.com/users/localz/followers","following_url":"https://api.github.com/users/localz/following{/other_user}","gists_url":"https://api.github.com/users/localz/gists{/gist_id}","starred_url":"https://api.github.com/users/localz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/localz/subscriptions","organizations_url":"https://api.github.com/users/localz/orgs","repos_url":"https://api.github.com/users/localz/repos","events_url":"https://api.github.com/users/localz/events{/privacy}","received_events_url":"https://api.github.com/users/localz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/localz/consul-backup-restore","description":"Library to back up and restore consul keys","fork":false,"url":"https://api.github.com/repos/localz/consul-backup-restore","forks_url":"https://api.github.com/repos/localz/consul-backup-restore/forks","keys_url":"https://api.github.com/repos/localz/consul-backup-restore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/localz/consul-backup-restore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/localz/consul-backup-restore/teams","hooks_url":"https://api.github.com/repos/localz/consul-backup-restore/hooks","issue_events_url":"https://api.github.com/repos/localz/consul-backup-restore/issues/events{/number}","events_url":"https://api.github.com/repos/localz/consul-backup-restore/events","assignees_url":"https://api.github.com/repos/localz/consul-backup-restore/assignees{/user}","branches_url":"https://api.github.com/repos/localz/consul-backup-restore/branches{/branch}","tags_url":"https://api.github.com/repos/localz/consul-backup-restore/tags","blobs_url":"https://api.github.com/repos/localz/consul-backup-restore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/localz/consul-backup-restore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/localz/consul-backup-restore/git/refs{/sha}","trees_url":"https://api.github.com/repos/localz/consul-backup-restore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/localz/consul-backup-restore/statuses/{sha}","languages_url":"https://api.github.com/repos/localz/consul-backup-restore/languages","stargazers_url":"https://api.github.com/repos/localz/consul-backup-restore/stargazers","contributors_url":"https://api.github.com/repos/localz/consul-backup-restore/contributors","subscribers_url":"https://api.github.com/repos/localz/consul-backup-restore/subscribers","subscription_url":"https://api.github.com/repos/localz/consul-backup-restore/subscription","commits_url":"https://api.github.com/repos/localz/consul-backup-restore/commits{/sha}","git_commits_url":"https://api.github.com/repos/localz/consul-backup-restore/git/commits{/sha}","comments_url":"https://api.github.com/repos/localz/consul-backup-restore/comments{/number}","issue_comment_url":"https://api.github.com/repos/localz/consul-backup-restore/issues/comments{/number}","contents_url":"https://api.github.com/repos/localz/consul-backup-restore/contents/{+path}","compare_url":"https://api.github.com/repos/localz/consul-backup-restore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/localz/consul-backup-restore/merges","archive_url":"https://api.github.com/repos/localz/consul-backup-restore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/localz/consul-backup-restore/downloads","issues_url":"https://api.github.com/repos/localz/consul-backup-restore/issues{/number}","pulls_url":"https://api.github.com/repos/localz/consul-backup-restore/pulls{/number}","milestones_url":"https://api.github.com/repos/localz/consul-backup-restore/milestones{/number}","notifications_url":"https://api.github.com/repos/localz/consul-backup-restore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/localz/consul-backup-restore/labels{/name}","releases_url":"https://api.github.com/repos/localz/consul-backup-restore/releases{/id}","deployments_url":"https://api.github.com/repos/localz/consul-backup-restore/deployments","created_at":"2016-07-15T04:11:16Z","updated_at":"2016-12-07T22:03:03Z","pushed_at":"2018-05-16T03:35:32Z","git_url":"git://github.com/localz/consul-backup-restore.git","ssh_url":"git@github.com:localz/consul-backup-restore.git","clone_url":"https://github.com/localz/consul-backup-restore.git","svn_url":"https://github.com/localz/consul-backup-restore","homepage":"https://www.npmjs.com/package/consul-backup-restore","size":147,"stargazers_count":4,"watchers_count":4,"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":1,"license":null,"forks":1,"open_issues":1,"watchers":4,"default_branch":"master"}},"base":{"label":"localz:master","ref":"master","sha":"a49920751820d404a70e566113efc65b2ec4d079","user":{"login":"localz","id":7599125,"avatar_url":"https://avatars3.githubusercontent.com/u/7599125?v=4","gravatar_id":"","url":"https://api.github.com/users/localz","html_url":"https://github.com/localz","followers_url":"https://api.github.com/users/localz/followers","following_url":"https://api.github.com/users/localz/following{/other_user}","gists_url":"https://api.github.com/users/localz/gists{/gist_id}","starred_url":"https://api.github.com/users/localz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/localz/subscriptions","organizations_url":"https://api.github.com/users/localz/orgs","repos_url":"https://api.github.com/users/localz/repos","events_url":"https://api.github.com/users/localz/events{/privacy}","received_events_url":"https://api.github.com/users/localz/received_events","type":"Organization","site_admin":false},"repo":{"id":63390909,"name":"consul-backup-restore","full_name":"localz/consul-backup-restore","owner":{"login":"localz","id":7599125,"avatar_url":"https://avatars3.githubusercontent.com/u/7599125?v=4","gravatar_id":"","url":"https://api.github.com/users/localz","html_url":"https://github.com/localz","followers_url":"https://api.github.com/users/localz/followers","following_url":"https://api.github.com/users/localz/following{/other_user}","gists_url":"https://api.github.com/users/localz/gists{/gist_id}","starred_url":"https://api.github.com/users/localz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/localz/subscriptions","organizations_url":"https://api.github.com/users/localz/orgs","repos_url":"https://api.github.com/users/localz/repos","events_url":"https://api.github.com/users/localz/events{/privacy}","received_events_url":"https://api.github.com/users/localz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/localz/consul-backup-restore","description":"Library to back up and restore consul keys","fork":false,"url":"https://api.github.com/repos/localz/consul-backup-restore","forks_url":"https://api.github.com/repos/localz/consul-backup-restore/forks","keys_url":"https://api.github.com/repos/localz/consul-backup-restore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/localz/consul-backup-restore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/localz/consul-backup-restore/teams","hooks_url":"https://api.github.com/repos/localz/consul-backup-restore/hooks","issue_events_url":"https://api.github.com/repos/localz/consul-backup-restore/issues/events{/number}","events_url":"https://api.github.com/repos/localz/consul-backup-restore/events","assignees_url":"https://api.github.com/repos/localz/consul-backup-restore/assignees{/user}","branches_url":"https://api.github.com/repos/localz/consul-backup-restore/branches{/branch}","tags_url":"https://api.github.com/repos/localz/consul-backup-restore/tags","blobs_url":"https://api.github.com/repos/localz/consul-backup-restore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/localz/consul-backup-restore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/localz/consul-backup-restore/git/refs{/sha}","trees_url":"https://api.github.com/repos/localz/consul-backup-restore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/localz/consul-backup-restore/statuses/{sha}","languages_url":"https://api.github.com/repos/localz/consul-backup-restore/languages","stargazers_url":"https://api.github.com/repos/localz/consul-backup-restore/stargazers","contributors_url":"https://api.github.com/repos/localz/consul-backup-restore/contributors","subscribers_url":"https://api.github.com/repos/localz/consul-backup-restore/subscribers","subscription_url":"https://api.github.com/repos/localz/consul-backup-restore/subscription","commits_url":"https://api.github.com/repos/localz/consul-backup-restore/commits{/sha}","git_commits_url":"https://api.github.com/repos/localz/consul-backup-restore/git/commits{/sha}","comments_url":"https://api.github.com/repos/localz/consul-backup-restore/comments{/number}","issue_comment_url":"https://api.github.com/repos/localz/consul-backup-restore/issues/comments{/number}","contents_url":"https://api.github.com/repos/localz/consul-backup-restore/contents/{+path}","compare_url":"https://api.github.com/repos/localz/consul-backup-restore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/localz/consul-backup-restore/merges","archive_url":"https://api.github.com/repos/localz/consul-backup-restore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/localz/consul-backup-restore/downloads","issues_url":"https://api.github.com/repos/localz/consul-backup-restore/issues{/number}","pulls_url":"https://api.github.com/repos/localz/consul-backup-restore/pulls{/number}","milestones_url":"https://api.github.com/repos/localz/consul-backup-restore/milestones{/number}","notifications_url":"https://api.github.com/repos/localz/consul-backup-restore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/localz/consul-backup-restore/labels{/name}","releases_url":"https://api.github.com/repos/localz/consul-backup-restore/releases{/id}","deployments_url":"https://api.github.com/repos/localz/consul-backup-restore/deployments","created_at":"2016-07-15T04:11:16Z","updated_at":"2016-12-07T22:03:03Z","pushed_at":"2018-05-16T03:35:32Z","git_url":"git://github.com/localz/consul-backup-restore.git","ssh_url":"git@github.com:localz/consul-backup-restore.git","clone_url":"https://github.com/localz/consul-backup-restore.git","svn_url":"https://github.com/localz/consul-backup-restore","homepage":"https://www.npmjs.com/package/consul-backup-restore","size":147,"stargazers_count":4,"watchers_count":4,"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":1,"license":null,"forks":1,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/localz/consul-backup-restore/pulls/6"},"html":{"href":"https://github.com/localz/consul-backup-restore/pull/6"},"issue":{"href":"https://api.github.com/repos/localz/consul-backup-restore/issues/6"},"comments":{"href":"https://api.github.com/repos/localz/consul-backup-restore/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/localz/consul-backup-restore/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/localz/consul-backup-restore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/localz/consul-backup-restore/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/localz/consul-backup-restore/statuses/4e499d6f005679d13eb0b434c689aa07e5ea18f7"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"nathanmalishev"}}