{"action":"created","comment":{"url":"https://api.github.com/repos/habitat-sh/on-prem-builder/pulls/comments/195235797","pull_request_review_id":128564403,"id":195235797,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTIzNTc5Nw==","diff_hunk":"@@ -32,6 +32,10 @@ configure() {\n   export PGPASSWORD\n   PGPASSWORD=$(cat /hab/svc/builder-datastore/config/pwfile)\n \n+  export ANALYTICS_ENABLED=${ANALYTICS_ENABLED:=\"false\"}\n+  export ANALYTICS_COMPANY_ID=${ANALYTICS_COMPANY_ID:=\"builder-on-prem\"}\n+  export ANALYTICS_WRITE_KEY=${ANALYTICS_WRITE_KEY:=\"NAwVPW04CeESMW3vtyqjJZmVMNBSQ1K1\"}","path":"scripts/provision.sh","position":6,"original_position":6,"commit_id":"e25a16fe1776967f241a5d5df746a35622eade3b","original_commit_id":"e25a16fe1776967f241a5d5df746a35622eade3b","user":{"login":"cnunciato","id":274700,"node_id":"MDQ6VXNlcjI3NDcwMA==","avatar_url":"https://avatars3.githubusercontent.com/u/274700?v=4","gravatar_id":"","url":"https://api.github.com/users/cnunciato","html_url":"https://github.com/cnunciato","followers_url":"https://api.github.com/users/cnunciato/followers","following_url":"https://api.github.com/users/cnunciato/following{/other_user}","gists_url":"https://api.github.com/users/cnunciato/gists{/gist_id}","starred_url":"https://api.github.com/users/cnunciato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnunciato/subscriptions","organizations_url":"https://api.github.com/users/cnunciato/orgs","repos_url":"https://api.github.com/users/cnunciato/repos","events_url":"https://api.github.com/users/cnunciato/events{/privacy}","received_events_url":"https://api.github.com/users/cnunciato/received_events","type":"User","site_admin":false},"body":"Now that I look at this, I'll bet by providing a write key, the API will send its events. I'm going to add a check to leave this value empty unless `ANALYTICS_ENABLED` is `true` just to prevent any inadvertent data-gathering.","created_at":"2018-06-13T21:05:20Z","updated_at":"2018-06-13T21:05:20Z","html_url":"https://github.com/habitat-sh/on-prem-builder/pull/66#discussion_r195235797","pull_request_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/pulls/66","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/habitat-sh/on-prem-builder/pulls/comments/195235797"},"html":{"href":"https://github.com/habitat-sh/on-prem-builder/pull/66#discussion_r195235797"},"pull_request":{"href":"https://api.github.com/repos/habitat-sh/on-prem-builder/pulls/66"}}},"pull_request":{"url":"https://api.github.com/repos/habitat-sh/on-prem-builder/pulls/66","id":194713442,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0NzEzNDQy","html_url":"https://github.com/habitat-sh/on-prem-builder/pull/66","diff_url":"https://github.com/habitat-sh/on-prem-builder/pull/66.diff","patch_url":"https://github.com/habitat-sh/on-prem-builder/pull/66.patch","issue_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/issues/66","number":66,"state":"open","locked":false,"title":"Enable opt-in analytics","user":{"login":"cnunciato","id":274700,"node_id":"MDQ6VXNlcjI3NDcwMA==","avatar_url":"https://avatars3.githubusercontent.com/u/274700?v=4","gravatar_id":"","url":"https://api.github.com/users/cnunciato","html_url":"https://github.com/cnunciato","followers_url":"https://api.github.com/users/cnunciato/followers","following_url":"https://api.github.com/users/cnunciato/following{/other_user}","gists_url":"https://api.github.com/users/cnunciato/gists{/gist_id}","starred_url":"https://api.github.com/users/cnunciato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnunciato/subscriptions","organizations_url":"https://api.github.com/users/cnunciato/orgs","repos_url":"https://api.github.com/users/cnunciato/repos","events_url":"https://api.github.com/users/cnunciato/events{/privacy}","received_events_url":"https://api.github.com/users/cnunciato/received_events","type":"User","site_admin":false},"body":"This change allows users to opt into sharing usage data by changing one or more values in `bldr.env`.\r\n\r\nSigned-off-by: Christian Nunciato <chris@nunciato.org>","created_at":"2018-06-13T20:59:04Z","updated_at":"2018-06-13T21:05:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"85b4ca21bc57719c16349cec02c8ec8b9fc1ee5c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/pulls/66/commits","review_comments_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/pulls/66/comments","review_comment_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/issues/66/comments","statuses_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/statuses/e25a16fe1776967f241a5d5df746a35622eade3b","head":{"label":"habitat-sh:cdn/analytics","ref":"cdn/analytics","sha":"e25a16fe1776967f241a5d5df746a35622eade3b","user":{"login":"habitat-sh","id":18171698,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MTcxNjk4","avatar_url":"https://avatars0.githubusercontent.com/u/18171698?v=4","gravatar_id":"","url":"https://api.github.com/users/habitat-sh","html_url":"https://github.com/habitat-sh","followers_url":"https://api.github.com/users/habitat-sh/followers","following_url":"https://api.github.com/users/habitat-sh/following{/other_user}","gists_url":"https://api.github.com/users/habitat-sh/gists{/gist_id}","starred_url":"https://api.github.com/users/habitat-sh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/habitat-sh/subscriptions","organizations_url":"https://api.github.com/users/habitat-sh/orgs","repos_url":"https://api.github.com/users/habitat-sh/repos","events_url":"https://api.github.com/users/habitat-sh/events{/privacy}","received_events_url":"https://api.github.com/users/habitat-sh/received_events","type":"Organization","site_admin":false},"repo":{"id":118154516,"node_id":"MDEwOlJlcG9zaXRvcnkxMTgxNTQ1MTY=","name":"on-prem-builder","full_name":"habitat-sh/on-prem-builder","owner":{"login":"habitat-sh","id":18171698,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MTcxNjk4","avatar_url":"https://avatars0.githubusercontent.com/u/18171698?v=4","gravatar_id":"","url":"https://api.github.com/users/habitat-sh","html_url":"https://github.com/habitat-sh","followers_url":"https://api.github.com/users/habitat-sh/followers","following_url":"https://api.github.com/users/habitat-sh/following{/other_user}","gists_url":"https://api.github.com/users/habitat-sh/gists{/gist_id}","starred_url":"https://api.github.com/users/habitat-sh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/habitat-sh/subscriptions","organizations_url":"https://api.github.com/users/habitat-sh/orgs","repos_url":"https://api.github.com/users/habitat-sh/repos","events_url":"https://api.github.com/users/habitat-sh/events{/privacy}","received_events_url":"https://api.github.com/users/habitat-sh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/habitat-sh/on-prem-builder","description":"Scripts to stand up an on-premise Habitat Builder Depot","fork":false,"url":"https://api.github.com/repos/habitat-sh/on-prem-builder","forks_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/forks","keys_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/teams","hooks_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/hooks","issue_events_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/issues/events{/number}","events_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/events","assignees_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/assignees{/user}","branches_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/branches{/branch}","tags_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/tags","blobs_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/statuses/{sha}","languages_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/languages","stargazers_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/stargazers","contributors_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/contributors","subscribers_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/subscribers","subscription_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/subscription","commits_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/contents/{+path}","compare_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/merges","archive_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/downloads","issues_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/issues{/number}","pulls_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/pulls{/number}","milestones_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/milestones{/number}","notifications_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/labels{/name}","releases_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/releases{/id}","deployments_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/deployments","created_at":"2018-01-19T17:11:57Z","updated_at":"2018-06-11T20:27:05Z","pushed_at":"2018-06-13T20:59:05Z","git_url":"git://github.com/habitat-sh/on-prem-builder.git","ssh_url":"git@github.com:habitat-sh/on-prem-builder.git","clone_url":"https://github.com/habitat-sh/on-prem-builder.git","svn_url":"https://github.com/habitat-sh/on-prem-builder","homepage":"","size":109,"stargazers_count":13,"watchers_count":13,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":8,"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":3,"open_issues":8,"watchers":13,"default_branch":"master"}},"base":{"label":"habitat-sh:master","ref":"master","sha":"8a159bdc5e324f3df1b390e138ebb685fb6feaa0","user":{"login":"habitat-sh","id":18171698,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MTcxNjk4","avatar_url":"https://avatars0.githubusercontent.com/u/18171698?v=4","gravatar_id":"","url":"https://api.github.com/users/habitat-sh","html_url":"https://github.com/habitat-sh","followers_url":"https://api.github.com/users/habitat-sh/followers","following_url":"https://api.github.com/users/habitat-sh/following{/other_user}","gists_url":"https://api.github.com/users/habitat-sh/gists{/gist_id}","starred_url":"https://api.github.com/users/habitat-sh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/habitat-sh/subscriptions","organizations_url":"https://api.github.com/users/habitat-sh/orgs","repos_url":"https://api.github.com/users/habitat-sh/repos","events_url":"https://api.github.com/users/habitat-sh/events{/privacy}","received_events_url":"https://api.github.com/users/habitat-sh/received_events","type":"Organization","site_admin":false},"repo":{"id":118154516,"node_id":"MDEwOlJlcG9zaXRvcnkxMTgxNTQ1MTY=","name":"on-prem-builder","full_name":"habitat-sh/on-prem-builder","owner":{"login":"habitat-sh","id":18171698,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MTcxNjk4","avatar_url":"https://avatars0.githubusercontent.com/u/18171698?v=4","gravatar_id":"","url":"https://api.github.com/users/habitat-sh","html_url":"https://github.com/habitat-sh","followers_url":"https://api.github.com/users/habitat-sh/followers","following_url":"https://api.github.com/users/habitat-sh/following{/other_user}","gists_url":"https://api.github.com/users/habitat-sh/gists{/gist_id}","starred_url":"https://api.github.com/users/habitat-sh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/habitat-sh/subscriptions","organizations_url":"https://api.github.com/users/habitat-sh/orgs","repos_url":"https://api.github.com/users/habitat-sh/repos","events_url":"https://api.github.com/users/habitat-sh/events{/privacy}","received_events_url":"https://api.github.com/users/habitat-sh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/habitat-sh/on-prem-builder","description":"Scripts to stand up an on-premise Habitat Builder Depot","fork":false,"url":"https://api.github.com/repos/habitat-sh/on-prem-builder","forks_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/forks","keys_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/teams","hooks_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/hooks","issue_events_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/issues/events{/number}","events_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/events","assignees_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/assignees{/user}","branches_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/branches{/branch}","tags_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/tags","blobs_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/statuses/{sha}","languages_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/languages","stargazers_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/stargazers","contributors_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/contributors","subscribers_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/subscribers","subscription_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/subscription","commits_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/contents/{+path}","compare_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/merges","archive_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/downloads","issues_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/issues{/number}","pulls_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/pulls{/number}","milestones_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/milestones{/number}","notifications_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/labels{/name}","releases_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/releases{/id}","deployments_url":"https://api.github.com/repos/habitat-sh/on-prem-builder/deployments","created_at":"2018-01-19T17:11:57Z","updated_at":"2018-06-11T20:27:05Z","pushed_at":"2018-06-13T20:59:05Z","git_url":"git://github.com/habitat-sh/on-prem-builder.git","ssh_url":"git@github.com:habitat-sh/on-prem-builder.git","clone_url":"https://github.com/habitat-sh/on-prem-builder.git","svn_url":"https://github.com/habitat-sh/on-prem-builder","homepage":"","size":109,"stargazers_count":13,"watchers_count":13,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":8,"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":3,"open_issues":8,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/habitat-sh/on-prem-builder/pulls/66"},"html":{"href":"https://github.com/habitat-sh/on-prem-builder/pull/66"},"issue":{"href":"https://api.github.com/repos/habitat-sh/on-prem-builder/issues/66"},"comments":{"href":"https://api.github.com/repos/habitat-sh/on-prem-builder/issues/66/comments"},"review_comments":{"href":"https://api.github.com/repos/habitat-sh/on-prem-builder/pulls/66/comments"},"review_comment":{"href":"https://api.github.com/repos/habitat-sh/on-prem-builder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/habitat-sh/on-prem-builder/pulls/66/commits"},"statuses":{"href":"https://api.github.com/repos/habitat-sh/on-prem-builder/statuses/e25a16fe1776967f241a5d5df746a35622eade3b"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"cnunciato"}}