{"action":"created","comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/comments/271214206","pull_request_review_id":221545141,"id":271214206,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI3MTIxNDIwNg==","diff_hunk":"@@ -1,6 +1,14 @@\n const StackUtils = require(`stack-utils`)\n \n-module.exports = tags => {\n+const cleanPaths = str => {\n+  const localPathRegex = new RegExp(\n+    process.cwd().replace(/[-[/{}()*+?.\\\\^$|]/g, `\\\\$&`),\n+    `g`\n+  )\n+  return str.replace(localPathRegex, `$PWD`)\n+}\n+\n+const sanitizeError = tags => {\n   if (!tags) return\n   const { error } = tags\n   if (error) {","path":"packages/gatsby-telemetry/src/error-helpers.js","position":15,"original_position":15,"commit_id":"d2ee7e75ecd7b6684e44be91900e33cd3cb7e4ee","original_commit_id":"d2ee7e75ecd7b6684e44be91900e33cd3cb7e4ee","user":{"login":"wardpeet","id":1120926,"node_id":"MDQ6VXNlcjExMjA5MjY=","avatar_url":"https://avatars3.githubusercontent.com/u/1120926?v=4","gravatar_id":"","url":"https://api.github.com/users/wardpeet","html_url":"https://github.com/wardpeet","followers_url":"https://api.github.com/users/wardpeet/followers","following_url":"https://api.github.com/users/wardpeet/following{/other_user}","gists_url":"https://api.github.com/users/wardpeet/gists{/gist_id}","starred_url":"https://api.github.com/users/wardpeet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wardpeet/subscriptions","organizations_url":"https://api.github.com/users/wardpeet/orgs","repos_url":"https://api.github.com/users/wardpeet/repos","events_url":"https://api.github.com/users/wardpeet/events{/privacy}","received_events_url":"https://api.github.com/users/wardpeet/received_events","type":"User","site_admin":false},"body":"with the above change you can drop this line\r\n```suggestion\r\n  if (error) {\r\n```","created_at":"2019-04-02T09:37:53Z","updated_at":"2019-04-02T09:45:39Z","html_url":"https://github.com/gatsbyjs/gatsby/pull/12877#discussion_r271214206","pull_request_url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/12877","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/comments/271214206"},"html":{"href":"https://github.com/gatsbyjs/gatsby/pull/12877#discussion_r271214206"},"pull_request":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/12877"}}},"pull_request":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/12877","id":264648855,"node_id":"MDExOlB1bGxSZXF1ZXN0MjY0NjQ4ODU1","html_url":"https://github.com/gatsbyjs/gatsby/pull/12877","diff_url":"https://github.com/gatsbyjs/gatsby/pull/12877.diff","patch_url":"https://github.com/gatsbyjs/gatsby/pull/12877.patch","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/12877","number":12877,"state":"open","locked":false,"title":"refactor(gatsby-telemetry): improve error handling and sanitization","user":{"login":"jamo","id":1354151,"node_id":"MDQ6VXNlcjEzNTQxNTE=","avatar_url":"https://avatars2.githubusercontent.com/u/1354151?v=4","gravatar_id":"","url":"https://api.github.com/users/jamo","html_url":"https://github.com/jamo","followers_url":"https://api.github.com/users/jamo/followers","following_url":"https://api.github.com/users/jamo/following{/other_user}","gists_url":"https://api.github.com/users/jamo/gists{/gist_id}","starred_url":"https://api.github.com/users/jamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamo/subscriptions","organizations_url":"https://api.github.com/users/jamo/orgs","repos_url":"https://api.github.com/users/jamo/repos","events_url":"https://api.github.com/users/jamo/events{/privacy}","received_events_url":"https://api.github.com/users/jamo/received_events","type":"User","site_admin":false},"body":"Did a bunch of cleanup\r\n\r\n- Added more tests for is truthy\r\n- Add verbose mode for log all telemetry (`GATSBY_TELEMETRY_VERBOSE`)\r\n- Ensure concurrent gatsby processes don't break telemetry\r\n- Fix an issue where broken permissions to homedir would break `gatsby`\r\n- Improve error sanitisation","created_at":"2019-03-26T18:43:54Z","updated_at":"2019-04-02T09:45:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38704eae09201f0ce4cbf1c5ab0a558fadfc52b2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/12877/commits","review_comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/12877/comments","review_comment_url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/12877/comments","statuses_url":"https://api.github.com/repos/gatsbyjs/gatsby/statuses/d2ee7e75ecd7b6684e44be91900e33cd3cb7e4ee","head":{"label":"gatsbyjs:fs-permissions","ref":"fs-permissions","sha":"d2ee7e75ecd7b6684e44be91900e33cd3cb7e4ee","user":{"login":"gatsbyjs","id":12551863,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNTUxODYz","avatar_url":"https://avatars1.githubusercontent.com/u/12551863?v=4","gravatar_id":"","url":"https://api.github.com/users/gatsbyjs","html_url":"https://github.com/gatsbyjs","followers_url":"https://api.github.com/users/gatsbyjs/followers","following_url":"https://api.github.com/users/gatsbyjs/following{/other_user}","gists_url":"https://api.github.com/users/gatsbyjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gatsbyjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gatsbyjs/subscriptions","organizations_url":"https://api.github.com/users/gatsbyjs/orgs","repos_url":"https://api.github.com/users/gatsbyjs/repos","events_url":"https://api.github.com/users/gatsbyjs/events{/privacy}","received_events_url":"https://api.github.com/users/gatsbyjs/received_events","type":"Organization","site_admin":false},"repo":{"id":36040894,"node_id":"MDEwOlJlcG9zaXRvcnkzNjA0MDg5NA==","name":"gatsby","full_name":"gatsbyjs/gatsby","private":false,"owner":{"login":"gatsbyjs","id":12551863,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNTUxODYz","avatar_url":"https://avatars1.githubusercontent.com/u/12551863?v=4","gravatar_id":"","url":"https://api.github.com/users/gatsbyjs","html_url":"https://github.com/gatsbyjs","followers_url":"https://api.github.com/users/gatsbyjs/followers","following_url":"https://api.github.com/users/gatsbyjs/following{/other_user}","gists_url":"https://api.github.com/users/gatsbyjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gatsbyjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gatsbyjs/subscriptions","organizations_url":"https://api.github.com/users/gatsbyjs/orgs","repos_url":"https://api.github.com/users/gatsbyjs/repos","events_url":"https://api.github.com/users/gatsbyjs/events{/privacy}","received_events_url":"https://api.github.com/users/gatsbyjs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/gatsbyjs/gatsby","description":"Build blazing fast, modern apps and websites with React","fork":false,"url":"https://api.github.com/repos/gatsbyjs/gatsby","forks_url":"https://api.github.com/repos/gatsbyjs/gatsby/forks","keys_url":"https://api.github.com/repos/gatsbyjs/gatsby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gatsbyjs/gatsby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gatsbyjs/gatsby/teams","hooks_url":"https://api.github.com/repos/gatsbyjs/gatsby/hooks","issue_events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/events{/number}","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/events","assignees_url":"https://api.github.com/repos/gatsbyjs/gatsby/assignees{/user}","branches_url":"https://api.github.com/repos/gatsbyjs/gatsby/branches{/branch}","tags_url":"https://api.github.com/repos/gatsbyjs/gatsby/tags","blobs_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/refs{/sha}","trees_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gatsbyjs/gatsby/statuses/{sha}","languages_url":"https://api.github.com/repos/gatsbyjs/gatsby/languages","stargazers_url":"https://api.github.com/repos/gatsbyjs/gatsby/stargazers","contributors_url":"https://api.github.com/repos/gatsbyjs/gatsby/contributors","subscribers_url":"https://api.github.com/repos/gatsbyjs/gatsby/subscribers","subscription_url":"https://api.github.com/repos/gatsbyjs/gatsby/subscription","commits_url":"https://api.github.com/repos/gatsbyjs/gatsby/commits{/sha}","git_commits_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/commits{/sha}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/comments{/number}","issue_comment_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments{/number}","contents_url":"https://api.github.com/repos/gatsbyjs/gatsby/contents/{+path}","compare_url":"https://api.github.com/repos/gatsbyjs/gatsby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gatsbyjs/gatsby/merges","archive_url":"https://api.github.com/repos/gatsbyjs/gatsby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gatsbyjs/gatsby/downloads","issues_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues{/number}","pulls_url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls{/number}","milestones_url":"https://api.github.com/repos/gatsbyjs/gatsby/milestones{/number}","notifications_url":"https://api.github.com/repos/gatsbyjs/gatsby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/labels{/name}","releases_url":"https://api.github.com/repos/gatsbyjs/gatsby/releases{/id}","deployments_url":"https://api.github.com/repos/gatsbyjs/gatsby/deployments","created_at":"2015-05-21T22:43:05Z","updated_at":"2019-04-02T09:45:00Z","pushed_at":"2019-04-02T09:33:15Z","git_url":"git://github.com/gatsbyjs/gatsby.git","ssh_url":"git@github.com:gatsbyjs/gatsby.git","clone_url":"https://github.com/gatsbyjs/gatsby.git","svn_url":"https://github.com/gatsbyjs/gatsby","homepage":"https://www.gatsbyjs.org","size":522653,"stargazers_count":33336,"watchers_count":33336,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4629,"mirror_url":null,"archived":false,"open_issues_count":494,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4629,"open_issues":494,"watchers":33336,"default_branch":"master"}},"base":{"label":"gatsbyjs:master","ref":"master","sha":"faf96aab19cfac8507cd84948249a10d4be3ec79","user":{"login":"gatsbyjs","id":12551863,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNTUxODYz","avatar_url":"https://avatars1.githubusercontent.com/u/12551863?v=4","gravatar_id":"","url":"https://api.github.com/users/gatsbyjs","html_url":"https://github.com/gatsbyjs","followers_url":"https://api.github.com/users/gatsbyjs/followers","following_url":"https://api.github.com/users/gatsbyjs/following{/other_user}","gists_url":"https://api.github.com/users/gatsbyjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gatsbyjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gatsbyjs/subscriptions","organizations_url":"https://api.github.com/users/gatsbyjs/orgs","repos_url":"https://api.github.com/users/gatsbyjs/repos","events_url":"https://api.github.com/users/gatsbyjs/events{/privacy}","received_events_url":"https://api.github.com/users/gatsbyjs/received_events","type":"Organization","site_admin":false},"repo":{"id":36040894,"node_id":"MDEwOlJlcG9zaXRvcnkzNjA0MDg5NA==","name":"gatsby","full_name":"gatsbyjs/gatsby","private":false,"owner":{"login":"gatsbyjs","id":12551863,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNTUxODYz","avatar_url":"https://avatars1.githubusercontent.com/u/12551863?v=4","gravatar_id":"","url":"https://api.github.com/users/gatsbyjs","html_url":"https://github.com/gatsbyjs","followers_url":"https://api.github.com/users/gatsbyjs/followers","following_url":"https://api.github.com/users/gatsbyjs/following{/other_user}","gists_url":"https://api.github.com/users/gatsbyjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gatsbyjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gatsbyjs/subscriptions","organizations_url":"https://api.github.com/users/gatsbyjs/orgs","repos_url":"https://api.github.com/users/gatsbyjs/repos","events_url":"https://api.github.com/users/gatsbyjs/events{/privacy}","received_events_url":"https://api.github.com/users/gatsbyjs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/gatsbyjs/gatsby","description":"Build blazing fast, modern apps and websites with React","fork":false,"url":"https://api.github.com/repos/gatsbyjs/gatsby","forks_url":"https://api.github.com/repos/gatsbyjs/gatsby/forks","keys_url":"https://api.github.com/repos/gatsbyjs/gatsby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gatsbyjs/gatsby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gatsbyjs/gatsby/teams","hooks_url":"https://api.github.com/repos/gatsbyjs/gatsby/hooks","issue_events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/events{/number}","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/events","assignees_url":"https://api.github.com/repos/gatsbyjs/gatsby/assignees{/user}","branches_url":"https://api.github.com/repos/gatsbyjs/gatsby/branches{/branch}","tags_url":"https://api.github.com/repos/gatsbyjs/gatsby/tags","blobs_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/refs{/sha}","trees_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gatsbyjs/gatsby/statuses/{sha}","languages_url":"https://api.github.com/repos/gatsbyjs/gatsby/languages","stargazers_url":"https://api.github.com/repos/gatsbyjs/gatsby/stargazers","contributors_url":"https://api.github.com/repos/gatsbyjs/gatsby/contributors","subscribers_url":"https://api.github.com/repos/gatsbyjs/gatsby/subscribers","subscription_url":"https://api.github.com/repos/gatsbyjs/gatsby/subscription","commits_url":"https://api.github.com/repos/gatsbyjs/gatsby/commits{/sha}","git_commits_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/commits{/sha}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/comments{/number}","issue_comment_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments{/number}","contents_url":"https://api.github.com/repos/gatsbyjs/gatsby/contents/{+path}","compare_url":"https://api.github.com/repos/gatsbyjs/gatsby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gatsbyjs/gatsby/merges","archive_url":"https://api.github.com/repos/gatsbyjs/gatsby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gatsbyjs/gatsby/downloads","issues_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues{/number}","pulls_url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls{/number}","milestones_url":"https://api.github.com/repos/gatsbyjs/gatsby/milestones{/number}","notifications_url":"https://api.github.com/repos/gatsbyjs/gatsby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/labels{/name}","releases_url":"https://api.github.com/repos/gatsbyjs/gatsby/releases{/id}","deployments_url":"https://api.github.com/repos/gatsbyjs/gatsby/deployments","created_at":"2015-05-21T22:43:05Z","updated_at":"2019-04-02T09:45:00Z","pushed_at":"2019-04-02T09:33:15Z","git_url":"git://github.com/gatsbyjs/gatsby.git","ssh_url":"git@github.com:gatsbyjs/gatsby.git","clone_url":"https://github.com/gatsbyjs/gatsby.git","svn_url":"https://github.com/gatsbyjs/gatsby","homepage":"https://www.gatsbyjs.org","size":522653,"stargazers_count":33336,"watchers_count":33336,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4629,"mirror_url":null,"archived":false,"open_issues_count":494,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4629,"open_issues":494,"watchers":33336,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/12877"},"html":{"href":"https://github.com/gatsbyjs/gatsby/pull/12877"},"issue":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/issues/12877"},"comments":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/issues/12877/comments"},"review_comments":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/12877/comments"},"review_comment":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/12877/commits"},"statuses":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/statuses/d2ee7e75ecd7b6684e44be91900e33cd3cb7e4ee"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"wardpeet"}}