{"action":"created","comment":{"url":"https://api.github.com/repos/github/backup-utils/pulls/comments/183789944","pull_request_review_id":114855455,"id":183789944,"diff_hunk":"@@ -252,13 +252,13 @@ setup_test_data () {\n \n   mkdir -p \"$loc/audit-log/\"\n   cd \"$loc/audit-log/\"\n-  touch audit_log-1-$last_yr-$last_mth-1.gz\n-  touch audit_log-1-$this_yr-$this_mth-1.gz\n+  echo \"fake audit log last yr last mth\" | gzip > audit_log-1-$last_yr-$last_mth-1.gz\n+  echo \"fake audit log this yr this mth\" | gzip > audit_log-1-$this_yr-$this_mth-1.gz\n \n   # Create hookshot logs\n   mkdir -p \"$loc/hookshot/\"\n   cd \"$loc/hookshot/\"\n-  touch hookshot-logs-2018-03-05.gz\n+  echo \"fake hookshot log\" | gzip > hookshot-logs-2018-03-05.gz","path":"test/testlib.sh","position":13,"original_position":13,"commit_id":"b1ce2389fddba42a982f2f563b6447957b80d1c5","original_commit_id":"b1ce2389fddba42a982f2f563b6447957b80d1c5","user":{"login":"dctucker","id":772810,"avatar_url":"https://avatars0.githubusercontent.com/u/772810?v=4","gravatar_id":"","url":"https://api.github.com/users/dctucker","html_url":"https://github.com/dctucker","followers_url":"https://api.github.com/users/dctucker/followers","following_url":"https://api.github.com/users/dctucker/following{/other_user}","gists_url":"https://api.github.com/users/dctucker/gists{/gist_id}","starred_url":"https://api.github.com/users/dctucker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dctucker/subscriptions","organizations_url":"https://api.github.com/users/dctucker/orgs","repos_url":"https://api.github.com/users/dctucker/repos","events_url":"https://api.github.com/users/dctucker/events{/privacy}","received_events_url":"https://api.github.com/users/dctucker/received_events","type":"User","site_admin":true},"body":"Should this be a hard-coded date-based filename?","created_at":"2018-04-24T16:02:49Z","updated_at":"2018-04-24T16:02:49Z","html_url":"https://github.com/github/backup-utils/pull/394#discussion_r183789944","pull_request_url":"https://api.github.com/repos/github/backup-utils/pulls/394","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/github/backup-utils/pulls/comments/183789944"},"html":{"href":"https://github.com/github/backup-utils/pull/394#discussion_r183789944"},"pull_request":{"href":"https://api.github.com/repos/github/backup-utils/pulls/394"}}},"pull_request":{"url":"https://api.github.com/repos/github/backup-utils/pulls/394","id":183786288,"html_url":"https://github.com/github/backup-utils/pull/394","diff_url":"https://github.com/github/backup-utils/pull/394.diff","patch_url":"https://github.com/github/backup-utils/pull/394.patch","issue_url":"https://api.github.com/repos/github/backup-utils/issues/394","number":394,"state":"open","locked":false,"title":"Fix restoring of audit and hookshot logs to cluster nodes","user":{"login":"lildude","id":627280,"avatar_url":"https://avatars3.githubusercontent.com/u/627280?v=4","gravatar_id":"","url":"https://api.github.com/users/lildude","html_url":"https://github.com/lildude","followers_url":"https://api.github.com/users/lildude/followers","following_url":"https://api.github.com/users/lildude/following{/other_user}","gists_url":"https://api.github.com/users/lildude/gists{/gist_id}","starred_url":"https://api.github.com/users/lildude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lildude/subscriptions","organizations_url":"https://api.github.com/users/lildude/orgs","repos_url":"https://api.github.com/users/lildude/repos","events_url":"https://api.github.com/users/lildude/events{/privacy}","received_events_url":"https://api.github.com/users/lildude/received_events","type":"User","site_admin":true},"body":"I've just discovered I made a syntactical error when implementing the Shellcheck recommendations in https://github.com/github/backup-utils/pull/387 that broke the restoring of hookshot and audit logs to a cluster: I put the `-print0` in the wrong place. 😊\r\n\r\nThis PR fixes that by moving the `-print0` to the end of the `find` command.\r\n\r\nI've also added a test to catch this in future.","created_at":"2018-04-24T15:59:30Z","updated_at":"2018-04-24T16:02:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f4ebf0c18804b813cc4825e306c8d89f8a95e25","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[{"name":"backup-utils","id":1923265,"slug":"backup-utils","description":"GitHub Enterprise backup-utils maintainers","privacy":"closed","url":"https://api.github.com/teams/1923265","members_url":"https://api.github.com/teams/1923265/members{/member}","repositories_url":"https://api.github.com/teams/1923265/repos","permission":"pull"}],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/github/backup-utils/pulls/394/commits","review_comments_url":"https://api.github.com/repos/github/backup-utils/pulls/394/comments","review_comment_url":"https://api.github.com/repos/github/backup-utils/pulls/comments{/number}","comments_url":"https://api.github.com/repos/github/backup-utils/issues/394/comments","statuses_url":"https://api.github.com/repos/github/backup-utils/statuses/b1ce2389fddba42a982f2f563b6447957b80d1c5","head":{"label":"github:lildude/fix-es-restore","ref":"lildude/fix-es-restore","sha":"b1ce2389fddba42a982f2f563b6447957b80d1c5","user":{"login":"github","id":9919,"avatar_url":"https://avatars1.githubusercontent.com/u/9919?v=4","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"repo":{"id":21622084,"name":"backup-utils","full_name":"github/backup-utils","owner":{"login":"github","id":9919,"avatar_url":"https://avatars1.githubusercontent.com/u/9919?v=4","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/github/backup-utils","description":"GitHub Enterprise Backup Utilities","fork":false,"url":"https://api.github.com/repos/github/backup-utils","forks_url":"https://api.github.com/repos/github/backup-utils/forks","keys_url":"https://api.github.com/repos/github/backup-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/github/backup-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/github/backup-utils/teams","hooks_url":"https://api.github.com/repos/github/backup-utils/hooks","issue_events_url":"https://api.github.com/repos/github/backup-utils/issues/events{/number}","events_url":"https://api.github.com/repos/github/backup-utils/events","assignees_url":"https://api.github.com/repos/github/backup-utils/assignees{/user}","branches_url":"https://api.github.com/repos/github/backup-utils/branches{/branch}","tags_url":"https://api.github.com/repos/github/backup-utils/tags","blobs_url":"https://api.github.com/repos/github/backup-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/github/backup-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/github/backup-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/github/backup-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/github/backup-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/github/backup-utils/languages","stargazers_url":"https://api.github.com/repos/github/backup-utils/stargazers","contributors_url":"https://api.github.com/repos/github/backup-utils/contributors","subscribers_url":"https://api.github.com/repos/github/backup-utils/subscribers","subscription_url":"https://api.github.com/repos/github/backup-utils/subscription","commits_url":"https://api.github.com/repos/github/backup-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/github/backup-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/github/backup-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/github/backup-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/github/backup-utils/contents/{+path}","compare_url":"https://api.github.com/repos/github/backup-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/github/backup-utils/merges","archive_url":"https://api.github.com/repos/github/backup-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/github/backup-utils/downloads","issues_url":"https://api.github.com/repos/github/backup-utils/issues{/number}","pulls_url":"https://api.github.com/repos/github/backup-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/github/backup-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/github/backup-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/github/backup-utils/labels{/name}","releases_url":"https://api.github.com/repos/github/backup-utils/releases{/id}","deployments_url":"https://api.github.com/repos/github/backup-utils/deployments","created_at":"2014-07-08T17:16:02Z","updated_at":"2018-04-24T12:59:19Z","pushed_at":"2018-04-24T15:59:31Z","git_url":"git://github.com/github/backup-utils.git","ssh_url":"git@github.com:github/backup-utils.git","clone_url":"https://github.com/github/backup-utils.git","svn_url":"https://github.com/github/backup-utils","homepage":"","size":1708,"stargazers_count":438,"watchers_count":438,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":194,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":194,"open_issues":18,"watchers":438,"default_branch":"master"}},"base":{"label":"github:master","ref":"master","sha":"100dd2d6892a567a8e12b48886d34c6bb596fdde","user":{"login":"github","id":9919,"avatar_url":"https://avatars1.githubusercontent.com/u/9919?v=4","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"repo":{"id":21622084,"name":"backup-utils","full_name":"github/backup-utils","owner":{"login":"github","id":9919,"avatar_url":"https://avatars1.githubusercontent.com/u/9919?v=4","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/github/backup-utils","description":"GitHub Enterprise Backup Utilities","fork":false,"url":"https://api.github.com/repos/github/backup-utils","forks_url":"https://api.github.com/repos/github/backup-utils/forks","keys_url":"https://api.github.com/repos/github/backup-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/github/backup-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/github/backup-utils/teams","hooks_url":"https://api.github.com/repos/github/backup-utils/hooks","issue_events_url":"https://api.github.com/repos/github/backup-utils/issues/events{/number}","events_url":"https://api.github.com/repos/github/backup-utils/events","assignees_url":"https://api.github.com/repos/github/backup-utils/assignees{/user}","branches_url":"https://api.github.com/repos/github/backup-utils/branches{/branch}","tags_url":"https://api.github.com/repos/github/backup-utils/tags","blobs_url":"https://api.github.com/repos/github/backup-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/github/backup-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/github/backup-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/github/backup-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/github/backup-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/github/backup-utils/languages","stargazers_url":"https://api.github.com/repos/github/backup-utils/stargazers","contributors_url":"https://api.github.com/repos/github/backup-utils/contributors","subscribers_url":"https://api.github.com/repos/github/backup-utils/subscribers","subscription_url":"https://api.github.com/repos/github/backup-utils/subscription","commits_url":"https://api.github.com/repos/github/backup-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/github/backup-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/github/backup-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/github/backup-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/github/backup-utils/contents/{+path}","compare_url":"https://api.github.com/repos/github/backup-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/github/backup-utils/merges","archive_url":"https://api.github.com/repos/github/backup-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/github/backup-utils/downloads","issues_url":"https://api.github.com/repos/github/backup-utils/issues{/number}","pulls_url":"https://api.github.com/repos/github/backup-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/github/backup-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/github/backup-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/github/backup-utils/labels{/name}","releases_url":"https://api.github.com/repos/github/backup-utils/releases{/id}","deployments_url":"https://api.github.com/repos/github/backup-utils/deployments","created_at":"2014-07-08T17:16:02Z","updated_at":"2018-04-24T12:59:19Z","pushed_at":"2018-04-24T15:59:31Z","git_url":"git://github.com/github/backup-utils.git","ssh_url":"git@github.com:github/backup-utils.git","clone_url":"https://github.com/github/backup-utils.git","svn_url":"https://github.com/github/backup-utils","homepage":"","size":1708,"stargazers_count":438,"watchers_count":438,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":194,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":194,"open_issues":18,"watchers":438,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/github/backup-utils/pulls/394"},"html":{"href":"https://github.com/github/backup-utils/pull/394"},"issue":{"href":"https://api.github.com/repos/github/backup-utils/issues/394"},"comments":{"href":"https://api.github.com/repos/github/backup-utils/issues/394/comments"},"review_comments":{"href":"https://api.github.com/repos/github/backup-utils/pulls/394/comments"},"review_comment":{"href":"https://api.github.com/repos/github/backup-utils/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/github/backup-utils/pulls/394/commits"},"statuses":{"href":"https://api.github.com/repos/github/backup-utils/statuses/b1ce2389fddba42a982f2f563b6447957b80d1c5"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"dctucker"}}