{"action":"created","comment":{"url":"https://api.github.com/repos/Nextdoor/conductor/pulls/comments/210367799","pull_request_review_id":146568204,"id":210367799,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDM2Nzc5OQ==","diff_hunk":"@@ -0,0 +1,38 @@\n+package datadog\n+\n+import (\n+\t\"fmt\"\n+\t\"os\"\n+\n+\t\"github.com/DataDog/datadog-go/statsd\"\n+\n+\t\"github.com/Nextdoor/conductor/shared/logger\"\n+)\n+\n+var c, _ = statsd.New(fmt.Sprintf(\"%v:%v\", os.Getenv(\"STATSD_HOST\"), 8125))\n+\n+func log(alertType statsd.EventAlertType, format string, args ...interface{}) {\n+\t// Send event to statsd and log it too!\n+\tif c != nil {","path":"shared/datadog/datadog.go","position":16,"original_position":16,"commit_id":"044348de9b754d019cb22b6a3dd6fed7fd9e6c79","original_commit_id":"044348de9b754d019cb22b6a3dd6fed7fd9e6c79","user":{"login":"viveganandan","id":35518443,"node_id":"MDQ6VXNlcjM1NTE4NDQz","avatar_url":"https://avatars1.githubusercontent.com/u/35518443?v=4","gravatar_id":"","url":"https://api.github.com/users/viveganandan","html_url":"https://github.com/viveganandan","followers_url":"https://api.github.com/users/viveganandan/followers","following_url":"https://api.github.com/users/viveganandan/following{/other_user}","gists_url":"https://api.github.com/users/viveganandan/gists{/gist_id}","starred_url":"https://api.github.com/users/viveganandan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viveganandan/subscriptions","organizations_url":"https://api.github.com/users/viveganandan/orgs","repos_url":"https://api.github.com/users/viveganandan/repos","events_url":"https://api.github.com/users/viveganandan/events{/privacy}","received_events_url":"https://api.github.com/users/viveganandan/received_events","type":"User","site_admin":false},"body":"c is nil when the ip address contained in STATSD_HOST is invalid.  I caught the error during the declaration, but cannot avoid checking if c is nil in log().  But I still need this so I can determine if the c is a valid statsd client before firing off a dd event\r\n\r\n\r\n\r\n","created_at":"2018-08-15T18:40:52Z","updated_at":"2018-08-15T18:40:52Z","html_url":"https://github.com/Nextdoor/conductor/pull/10#discussion_r210367799","pull_request_url":"https://api.github.com/repos/Nextdoor/conductor/pulls/10","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Nextdoor/conductor/pulls/comments/210367799"},"html":{"href":"https://github.com/Nextdoor/conductor/pull/10#discussion_r210367799"},"pull_request":{"href":"https://api.github.com/repos/Nextdoor/conductor/pulls/10"}},"in_reply_to_id":210129085},"pull_request":{"url":"https://api.github.com/repos/Nextdoor/conductor/pulls/10","id":208426944,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4NDI2OTQ0","html_url":"https://github.com/Nextdoor/conductor/pull/10","diff_url":"https://github.com/Nextdoor/conductor/pull/10.diff","patch_url":"https://github.com/Nextdoor/conductor/pull/10.patch","issue_url":"https://api.github.com/repos/Nextdoor/conductor/issues/10","number":10,"state":"open","locked":false,"title":"datadog events","user":{"login":"viveganandan","id":35518443,"node_id":"MDQ6VXNlcjM1NTE4NDQz","avatar_url":"https://avatars1.githubusercontent.com/u/35518443?v=4","gravatar_id":"","url":"https://api.github.com/users/viveganandan","html_url":"https://github.com/viveganandan","followers_url":"https://api.github.com/users/viveganandan/followers","following_url":"https://api.github.com/users/viveganandan/following{/other_user}","gists_url":"https://api.github.com/users/viveganandan/gists{/gist_id}","starred_url":"https://api.github.com/users/viveganandan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viveganandan/subscriptions","organizations_url":"https://api.github.com/users/viveganandan/orgs","repos_url":"https://api.github.com/users/viveganandan/repos","events_url":"https://api.github.com/users/viveganandan/events{/privacy}","received_events_url":"https://api.github.com/users/viveganandan/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-14T22:21:48Z","updated_at":"2018-08-15T18:40:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"edc676f9b2c62addd5f922ba4e11f785874bc3bf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Nextdoor/conductor/pulls/10/commits","review_comments_url":"https://api.github.com/repos/Nextdoor/conductor/pulls/10/comments","review_comment_url":"https://api.github.com/repos/Nextdoor/conductor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Nextdoor/conductor/issues/10/comments","statuses_url":"https://api.github.com/repos/Nextdoor/conductor/statuses/044348de9b754d019cb22b6a3dd6fed7fd9e6c79","head":{"label":"viveganandan:datadog-events","ref":"datadog-events","sha":"044348de9b754d019cb22b6a3dd6fed7fd9e6c79","user":{"login":"viveganandan","id":35518443,"node_id":"MDQ6VXNlcjM1NTE4NDQz","avatar_url":"https://avatars1.githubusercontent.com/u/35518443?v=4","gravatar_id":"","url":"https://api.github.com/users/viveganandan","html_url":"https://github.com/viveganandan","followers_url":"https://api.github.com/users/viveganandan/followers","following_url":"https://api.github.com/users/viveganandan/following{/other_user}","gists_url":"https://api.github.com/users/viveganandan/gists{/gist_id}","starred_url":"https://api.github.com/users/viveganandan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viveganandan/subscriptions","organizations_url":"https://api.github.com/users/viveganandan/orgs","repos_url":"https://api.github.com/users/viveganandan/repos","events_url":"https://api.github.com/users/viveganandan/events{/privacy}","received_events_url":"https://api.github.com/users/viveganandan/received_events","type":"User","site_admin":false},"repo":{"id":144777494,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ3Nzc0OTQ=","name":"conductor","full_name":"viveganandan/conductor","owner":{"login":"viveganandan","id":35518443,"node_id":"MDQ6VXNlcjM1NTE4NDQz","avatar_url":"https://avatars1.githubusercontent.com/u/35518443?v=4","gravatar_id":"","url":"https://api.github.com/users/viveganandan","html_url":"https://github.com/viveganandan","followers_url":"https://api.github.com/users/viveganandan/followers","following_url":"https://api.github.com/users/viveganandan/following{/other_user}","gists_url":"https://api.github.com/users/viveganandan/gists{/gist_id}","starred_url":"https://api.github.com/users/viveganandan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viveganandan/subscriptions","organizations_url":"https://api.github.com/users/viveganandan/orgs","repos_url":"https://api.github.com/users/viveganandan/repos","events_url":"https://api.github.com/users/viveganandan/events{/privacy}","received_events_url":"https://api.github.com/users/viveganandan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/viveganandan/conductor","description":"Continuous Deployment","fork":true,"url":"https://api.github.com/repos/viveganandan/conductor","forks_url":"https://api.github.com/repos/viveganandan/conductor/forks","keys_url":"https://api.github.com/repos/viveganandan/conductor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/viveganandan/conductor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/viveganandan/conductor/teams","hooks_url":"https://api.github.com/repos/viveganandan/conductor/hooks","issue_events_url":"https://api.github.com/repos/viveganandan/conductor/issues/events{/number}","events_url":"https://api.github.com/repos/viveganandan/conductor/events","assignees_url":"https://api.github.com/repos/viveganandan/conductor/assignees{/user}","branches_url":"https://api.github.com/repos/viveganandan/conductor/branches{/branch}","tags_url":"https://api.github.com/repos/viveganandan/conductor/tags","blobs_url":"https://api.github.com/repos/viveganandan/conductor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/viveganandan/conductor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/viveganandan/conductor/git/refs{/sha}","trees_url":"https://api.github.com/repos/viveganandan/conductor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/viveganandan/conductor/statuses/{sha}","languages_url":"https://api.github.com/repos/viveganandan/conductor/languages","stargazers_url":"https://api.github.com/repos/viveganandan/conductor/stargazers","contributors_url":"https://api.github.com/repos/viveganandan/conductor/contributors","subscribers_url":"https://api.github.com/repos/viveganandan/conductor/subscribers","subscription_url":"https://api.github.com/repos/viveganandan/conductor/subscription","commits_url":"https://api.github.com/repos/viveganandan/conductor/commits{/sha}","git_commits_url":"https://api.github.com/repos/viveganandan/conductor/git/commits{/sha}","comments_url":"https://api.github.com/repos/viveganandan/conductor/comments{/number}","issue_comment_url":"https://api.github.com/repos/viveganandan/conductor/issues/comments{/number}","contents_url":"https://api.github.com/repos/viveganandan/conductor/contents/{+path}","compare_url":"https://api.github.com/repos/viveganandan/conductor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/viveganandan/conductor/merges","archive_url":"https://api.github.com/repos/viveganandan/conductor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/viveganandan/conductor/downloads","issues_url":"https://api.github.com/repos/viveganandan/conductor/issues{/number}","pulls_url":"https://api.github.com/repos/viveganandan/conductor/pulls{/number}","milestones_url":"https://api.github.com/repos/viveganandan/conductor/milestones{/number}","notifications_url":"https://api.github.com/repos/viveganandan/conductor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/viveganandan/conductor/labels{/name}","releases_url":"https://api.github.com/repos/viveganandan/conductor/releases{/id}","deployments_url":"https://api.github.com/repos/viveganandan/conductor/deployments","created_at":"2018-08-14T22:16:56Z","updated_at":"2018-08-14T22:16:58Z","pushed_at":"2018-08-14T22:20:40Z","git_url":"git://github.com/viveganandan/conductor.git","ssh_url":"git@github.com:viveganandan/conductor.git","clone_url":"https://github.com/viveganandan/conductor.git","svn_url":"https://github.com/viveganandan/conductor","homepage":"","size":354,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"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":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Nextdoor:master","ref":"master","sha":"e33870089e03ca13956df970c24babbbbb9e5636","user":{"login":"Nextdoor","id":605176,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYwNTE3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/605176?v=4","gravatar_id":"","url":"https://api.github.com/users/Nextdoor","html_url":"https://github.com/Nextdoor","followers_url":"https://api.github.com/users/Nextdoor/followers","following_url":"https://api.github.com/users/Nextdoor/following{/other_user}","gists_url":"https://api.github.com/users/Nextdoor/gists{/gist_id}","starred_url":"https://api.github.com/users/Nextdoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nextdoor/subscriptions","organizations_url":"https://api.github.com/users/Nextdoor/orgs","repos_url":"https://api.github.com/users/Nextdoor/repos","events_url":"https://api.github.com/users/Nextdoor/events{/privacy}","received_events_url":"https://api.github.com/users/Nextdoor/received_events","type":"Organization","site_admin":false},"repo":{"id":116183828,"node_id":"MDEwOlJlcG9zaXRvcnkxMTYxODM4Mjg=","name":"conductor","full_name":"Nextdoor/conductor","owner":{"login":"Nextdoor","id":605176,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYwNTE3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/605176?v=4","gravatar_id":"","url":"https://api.github.com/users/Nextdoor","html_url":"https://github.com/Nextdoor","followers_url":"https://api.github.com/users/Nextdoor/followers","following_url":"https://api.github.com/users/Nextdoor/following{/other_user}","gists_url":"https://api.github.com/users/Nextdoor/gists{/gist_id}","starred_url":"https://api.github.com/users/Nextdoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nextdoor/subscriptions","organizations_url":"https://api.github.com/users/Nextdoor/orgs","repos_url":"https://api.github.com/users/Nextdoor/repos","events_url":"https://api.github.com/users/Nextdoor/events{/privacy}","received_events_url":"https://api.github.com/users/Nextdoor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Nextdoor/conductor","description":"Continuous Deployment","fork":false,"url":"https://api.github.com/repos/Nextdoor/conductor","forks_url":"https://api.github.com/repos/Nextdoor/conductor/forks","keys_url":"https://api.github.com/repos/Nextdoor/conductor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nextdoor/conductor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nextdoor/conductor/teams","hooks_url":"https://api.github.com/repos/Nextdoor/conductor/hooks","issue_events_url":"https://api.github.com/repos/Nextdoor/conductor/issues/events{/number}","events_url":"https://api.github.com/repos/Nextdoor/conductor/events","assignees_url":"https://api.github.com/repos/Nextdoor/conductor/assignees{/user}","branches_url":"https://api.github.com/repos/Nextdoor/conductor/branches{/branch}","tags_url":"https://api.github.com/repos/Nextdoor/conductor/tags","blobs_url":"https://api.github.com/repos/Nextdoor/conductor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nextdoor/conductor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nextdoor/conductor/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nextdoor/conductor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nextdoor/conductor/statuses/{sha}","languages_url":"https://api.github.com/repos/Nextdoor/conductor/languages","stargazers_url":"https://api.github.com/repos/Nextdoor/conductor/stargazers","contributors_url":"https://api.github.com/repos/Nextdoor/conductor/contributors","subscribers_url":"https://api.github.com/repos/Nextdoor/conductor/subscribers","subscription_url":"https://api.github.com/repos/Nextdoor/conductor/subscription","commits_url":"https://api.github.com/repos/Nextdoor/conductor/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nextdoor/conductor/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nextdoor/conductor/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nextdoor/conductor/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nextdoor/conductor/contents/{+path}","compare_url":"https://api.github.com/repos/Nextdoor/conductor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nextdoor/conductor/merges","archive_url":"https://api.github.com/repos/Nextdoor/conductor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nextdoor/conductor/downloads","issues_url":"https://api.github.com/repos/Nextdoor/conductor/issues{/number}","pulls_url":"https://api.github.com/repos/Nextdoor/conductor/pulls{/number}","milestones_url":"https://api.github.com/repos/Nextdoor/conductor/milestones{/number}","notifications_url":"https://api.github.com/repos/Nextdoor/conductor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nextdoor/conductor/labels{/name}","releases_url":"https://api.github.com/repos/Nextdoor/conductor/releases{/id}","deployments_url":"https://api.github.com/repos/Nextdoor/conductor/deployments","created_at":"2018-01-03T21:31:11Z","updated_at":"2018-08-06T23:27:02Z","pushed_at":"2018-08-14T22:21:49Z","git_url":"git://github.com/Nextdoor/conductor.git","ssh_url":"git@github.com:Nextdoor/conductor.git","clone_url":"https://github.com/Nextdoor/conductor.git","svn_url":"https://github.com/Nextdoor/conductor","homepage":"","size":344,"stargazers_count":5,"watchers_count":5,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":2,"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":4,"open_issues":2,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Nextdoor/conductor/pulls/10"},"html":{"href":"https://github.com/Nextdoor/conductor/pull/10"},"issue":{"href":"https://api.github.com/repos/Nextdoor/conductor/issues/10"},"comments":{"href":"https://api.github.com/repos/Nextdoor/conductor/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/Nextdoor/conductor/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/Nextdoor/conductor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Nextdoor/conductor/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/Nextdoor/conductor/statuses/044348de9b754d019cb22b6a3dd6fed7fd9e6c79"}},"author_association":"NONE"}}
{"actor":{"display_login":"viveganandan"}}