{"action":"created","comment":{"url":"https://api.github.com/repos/busbud/hot-shots/pulls/comments/224810222","pull_request_review_id":164275317,"id":224810222,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDgxMDIyMg==","diff_hunk":"@@ -26,14 +26,21 @@ function formatTags(tags, telegraf) {\n function overrideTags (parent, child, telegraf) {\n   var childCopy = {};\n   var toAppend = [];\n+  var duplicateKeys = [];\n+\n   formatTags(child, telegraf).forEach(function (tag) {\n     var idx = typeof tag === 'string' ? tag.indexOf(':') : -1;\n     if (idx < 1) { // Not found or first character\n       toAppend.push(tag);\n     } else {\n-      childCopy[tag.substring(0, idx)] = tag.substring(idx + 1);\n+      if(childCopy[tag.substring(0, idx)]) {\n+        childCopy[tag.substring(0, idx)].push(tag.substring(idx + 1));\n+      } else {\n+        childCopy[tag.substring(0, idx)] = [tag.substring(idx + 1)];\n+      }","path":"lib/helpers.js","position":16,"original_position":16,"commit_id":"65b3e1a156a0a9d642c6febb72a41d8ecb170028","original_commit_id":"65b3e1a156a0a9d642c6febb72a41d8ecb170028","user":{"login":"crondinini","id":21973269,"node_id":"MDQ6VXNlcjIxOTczMjY5","avatar_url":"https://avatars2.githubusercontent.com/u/21973269?v=4","gravatar_id":"","url":"https://api.github.com/users/crondinini","html_url":"https://github.com/crondinini","followers_url":"https://api.github.com/users/crondinini/followers","following_url":"https://api.github.com/users/crondinini/following{/other_user}","gists_url":"https://api.github.com/users/crondinini/gists{/gist_id}","starred_url":"https://api.github.com/users/crondinini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crondinini/subscriptions","organizations_url":"https://api.github.com/users/crondinini/orgs","repos_url":"https://api.github.com/users/crondinini/repos","events_url":"https://api.github.com/users/crondinini/events{/privacy}","received_events_url":"https://api.github.com/users/crondinini/received_events","type":"User","site_admin":false},"body":"That's code from hot-shots. I was trying to keep the changes to the original code to a minimum.","created_at":"2018-10-12T14:46:40Z","updated_at":"2018-10-12T14:46:40Z","html_url":"https://github.com/busbud/hot-shots/pull/1#discussion_r224810222","pull_request_url":"https://api.github.com/repos/busbud/hot-shots/pulls/1","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/busbud/hot-shots/pulls/comments/224810222"},"html":{"href":"https://github.com/busbud/hot-shots/pull/1#discussion_r224810222"},"pull_request":{"href":"https://api.github.com/repos/busbud/hot-shots/pulls/1"}},"in_reply_to_id":224808434},"pull_request":{"url":"https://api.github.com/repos/busbud/hot-shots/pulls/1","id":221629562,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxNjI5NTYy","html_url":"https://github.com/busbud/hot-shots/pull/1","diff_url":"https://github.com/busbud/hot-shots/pull/1.diff","patch_url":"https://github.com/busbud/hot-shots/pull/1.patch","issue_url":"https://api.github.com/repos/busbud/hot-shots/issues/1","number":1,"state":"open","locked":false,"title":"Allow duplicate key in tags","user":{"login":"crondinini","id":21973269,"node_id":"MDQ6VXNlcjIxOTczMjY5","avatar_url":"https://avatars2.githubusercontent.com/u/21973269?v=4","gravatar_id":"","url":"https://api.github.com/users/crondinini","html_url":"https://github.com/crondinini","followers_url":"https://api.github.com/users/crondinini/followers","following_url":"https://api.github.com/users/crondinini/following{/other_user}","gists_url":"https://api.github.com/users/crondinini/gists{/gist_id}","starred_url":"https://api.github.com/users/crondinini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crondinini/subscriptions","organizations_url":"https://api.github.com/users/crondinini/orgs","repos_url":"https://api.github.com/users/crondinini/repos","events_url":"https://api.github.com/users/crondinini/events{/privacy}","received_events_url":"https://api.github.com/users/crondinini/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-10T00:59:45Z","updated_at":"2018-10-12T14:46:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c8a9d55dc15ff7cdf2eceb3cb154f534e107b39","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/busbud/hot-shots/pulls/1/commits","review_comments_url":"https://api.github.com/repos/busbud/hot-shots/pulls/1/comments","review_comment_url":"https://api.github.com/repos/busbud/hot-shots/pulls/comments{/number}","comments_url":"https://api.github.com/repos/busbud/hot-shots/issues/1/comments","statuses_url":"https://api.github.com/repos/busbud/hot-shots/statuses/65b3e1a156a0a9d642c6febb72a41d8ecb170028","head":{"label":"busbud:allow-duplicate-key","ref":"allow-duplicate-key","sha":"65b3e1a156a0a9d642c6febb72a41d8ecb170028","user":{"login":"busbud","id":1574571,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1NzQ1NzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1574571?v=4","gravatar_id":"","url":"https://api.github.com/users/busbud","html_url":"https://github.com/busbud","followers_url":"https://api.github.com/users/busbud/followers","following_url":"https://api.github.com/users/busbud/following{/other_user}","gists_url":"https://api.github.com/users/busbud/gists{/gist_id}","starred_url":"https://api.github.com/users/busbud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/busbud/subscriptions","organizations_url":"https://api.github.com/users/busbud/orgs","repos_url":"https://api.github.com/users/busbud/repos","events_url":"https://api.github.com/users/busbud/events{/privacy}","received_events_url":"https://api.github.com/users/busbud/received_events","type":"Organization","site_admin":false},"repo":{"id":152276202,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIyNzYyMDI=","name":"hot-shots","full_name":"busbud/hot-shots","private":false,"owner":{"login":"busbud","id":1574571,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1NzQ1NzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1574571?v=4","gravatar_id":"","url":"https://api.github.com/users/busbud","html_url":"https://github.com/busbud","followers_url":"https://api.github.com/users/busbud/followers","following_url":"https://api.github.com/users/busbud/following{/other_user}","gists_url":"https://api.github.com/users/busbud/gists{/gist_id}","starred_url":"https://api.github.com/users/busbud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/busbud/subscriptions","organizations_url":"https://api.github.com/users/busbud/orgs","repos_url":"https://api.github.com/users/busbud/repos","events_url":"https://api.github.com/users/busbud/events{/privacy}","received_events_url":"https://api.github.com/users/busbud/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/busbud/hot-shots","description":"Node.js client for statsd, DogStatsD, and Telegraf","fork":true,"url":"https://api.github.com/repos/busbud/hot-shots","forks_url":"https://api.github.com/repos/busbud/hot-shots/forks","keys_url":"https://api.github.com/repos/busbud/hot-shots/keys{/key_id}","collaborators_url":"https://api.github.com/repos/busbud/hot-shots/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/busbud/hot-shots/teams","hooks_url":"https://api.github.com/repos/busbud/hot-shots/hooks","issue_events_url":"https://api.github.com/repos/busbud/hot-shots/issues/events{/number}","events_url":"https://api.github.com/repos/busbud/hot-shots/events","assignees_url":"https://api.github.com/repos/busbud/hot-shots/assignees{/user}","branches_url":"https://api.github.com/repos/busbud/hot-shots/branches{/branch}","tags_url":"https://api.github.com/repos/busbud/hot-shots/tags","blobs_url":"https://api.github.com/repos/busbud/hot-shots/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/busbud/hot-shots/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/busbud/hot-shots/git/refs{/sha}","trees_url":"https://api.github.com/repos/busbud/hot-shots/git/trees{/sha}","statuses_url":"https://api.github.com/repos/busbud/hot-shots/statuses/{sha}","languages_url":"https://api.github.com/repos/busbud/hot-shots/languages","stargazers_url":"https://api.github.com/repos/busbud/hot-shots/stargazers","contributors_url":"https://api.github.com/repos/busbud/hot-shots/contributors","subscribers_url":"https://api.github.com/repos/busbud/hot-shots/subscribers","subscription_url":"https://api.github.com/repos/busbud/hot-shots/subscription","commits_url":"https://api.github.com/repos/busbud/hot-shots/commits{/sha}","git_commits_url":"https://api.github.com/repos/busbud/hot-shots/git/commits{/sha}","comments_url":"https://api.github.com/repos/busbud/hot-shots/comments{/number}","issue_comment_url":"https://api.github.com/repos/busbud/hot-shots/issues/comments{/number}","contents_url":"https://api.github.com/repos/busbud/hot-shots/contents/{+path}","compare_url":"https://api.github.com/repos/busbud/hot-shots/compare/{base}...{head}","merges_url":"https://api.github.com/repos/busbud/hot-shots/merges","archive_url":"https://api.github.com/repos/busbud/hot-shots/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/busbud/hot-shots/downloads","issues_url":"https://api.github.com/repos/busbud/hot-shots/issues{/number}","pulls_url":"https://api.github.com/repos/busbud/hot-shots/pulls{/number}","milestones_url":"https://api.github.com/repos/busbud/hot-shots/milestones{/number}","notifications_url":"https://api.github.com/repos/busbud/hot-shots/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/busbud/hot-shots/labels{/name}","releases_url":"https://api.github.com/repos/busbud/hot-shots/releases{/id}","deployments_url":"https://api.github.com/repos/busbud/hot-shots/deployments","created_at":"2018-10-09T15:32:02Z","updated_at":"2018-10-09T15:32:04Z","pushed_at":"2018-10-11T19:49:13Z","git_url":"git://github.com/busbud/hot-shots.git","ssh_url":"git@github.com:busbud/hot-shots.git","clone_url":"https://github.com/busbud/hot-shots.git","svn_url":"https://github.com/busbud/hot-shots","homepage":"","size":363,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"busbud:master","ref":"master","sha":"97f013887772ff8bcb7d859dc96bbbf499c131f3","user":{"login":"busbud","id":1574571,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1NzQ1NzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1574571?v=4","gravatar_id":"","url":"https://api.github.com/users/busbud","html_url":"https://github.com/busbud","followers_url":"https://api.github.com/users/busbud/followers","following_url":"https://api.github.com/users/busbud/following{/other_user}","gists_url":"https://api.github.com/users/busbud/gists{/gist_id}","starred_url":"https://api.github.com/users/busbud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/busbud/subscriptions","organizations_url":"https://api.github.com/users/busbud/orgs","repos_url":"https://api.github.com/users/busbud/repos","events_url":"https://api.github.com/users/busbud/events{/privacy}","received_events_url":"https://api.github.com/users/busbud/received_events","type":"Organization","site_admin":false},"repo":{"id":152276202,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIyNzYyMDI=","name":"hot-shots","full_name":"busbud/hot-shots","private":false,"owner":{"login":"busbud","id":1574571,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1NzQ1NzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1574571?v=4","gravatar_id":"","url":"https://api.github.com/users/busbud","html_url":"https://github.com/busbud","followers_url":"https://api.github.com/users/busbud/followers","following_url":"https://api.github.com/users/busbud/following{/other_user}","gists_url":"https://api.github.com/users/busbud/gists{/gist_id}","starred_url":"https://api.github.com/users/busbud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/busbud/subscriptions","organizations_url":"https://api.github.com/users/busbud/orgs","repos_url":"https://api.github.com/users/busbud/repos","events_url":"https://api.github.com/users/busbud/events{/privacy}","received_events_url":"https://api.github.com/users/busbud/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/busbud/hot-shots","description":"Node.js client for statsd, DogStatsD, and Telegraf","fork":true,"url":"https://api.github.com/repos/busbud/hot-shots","forks_url":"https://api.github.com/repos/busbud/hot-shots/forks","keys_url":"https://api.github.com/repos/busbud/hot-shots/keys{/key_id}","collaborators_url":"https://api.github.com/repos/busbud/hot-shots/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/busbud/hot-shots/teams","hooks_url":"https://api.github.com/repos/busbud/hot-shots/hooks","issue_events_url":"https://api.github.com/repos/busbud/hot-shots/issues/events{/number}","events_url":"https://api.github.com/repos/busbud/hot-shots/events","assignees_url":"https://api.github.com/repos/busbud/hot-shots/assignees{/user}","branches_url":"https://api.github.com/repos/busbud/hot-shots/branches{/branch}","tags_url":"https://api.github.com/repos/busbud/hot-shots/tags","blobs_url":"https://api.github.com/repos/busbud/hot-shots/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/busbud/hot-shots/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/busbud/hot-shots/git/refs{/sha}","trees_url":"https://api.github.com/repos/busbud/hot-shots/git/trees{/sha}","statuses_url":"https://api.github.com/repos/busbud/hot-shots/statuses/{sha}","languages_url":"https://api.github.com/repos/busbud/hot-shots/languages","stargazers_url":"https://api.github.com/repos/busbud/hot-shots/stargazers","contributors_url":"https://api.github.com/repos/busbud/hot-shots/contributors","subscribers_url":"https://api.github.com/repos/busbud/hot-shots/subscribers","subscription_url":"https://api.github.com/repos/busbud/hot-shots/subscription","commits_url":"https://api.github.com/repos/busbud/hot-shots/commits{/sha}","git_commits_url":"https://api.github.com/repos/busbud/hot-shots/git/commits{/sha}","comments_url":"https://api.github.com/repos/busbud/hot-shots/comments{/number}","issue_comment_url":"https://api.github.com/repos/busbud/hot-shots/issues/comments{/number}","contents_url":"https://api.github.com/repos/busbud/hot-shots/contents/{+path}","compare_url":"https://api.github.com/repos/busbud/hot-shots/compare/{base}...{head}","merges_url":"https://api.github.com/repos/busbud/hot-shots/merges","archive_url":"https://api.github.com/repos/busbud/hot-shots/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/busbud/hot-shots/downloads","issues_url":"https://api.github.com/repos/busbud/hot-shots/issues{/number}","pulls_url":"https://api.github.com/repos/busbud/hot-shots/pulls{/number}","milestones_url":"https://api.github.com/repos/busbud/hot-shots/milestones{/number}","notifications_url":"https://api.github.com/repos/busbud/hot-shots/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/busbud/hot-shots/labels{/name}","releases_url":"https://api.github.com/repos/busbud/hot-shots/releases{/id}","deployments_url":"https://api.github.com/repos/busbud/hot-shots/deployments","created_at":"2018-10-09T15:32:02Z","updated_at":"2018-10-09T15:32:04Z","pushed_at":"2018-10-11T19:49:13Z","git_url":"git://github.com/busbud/hot-shots.git","ssh_url":"git@github.com:busbud/hot-shots.git","clone_url":"https://github.com/busbud/hot-shots.git","svn_url":"https://github.com/busbud/hot-shots","homepage":"","size":363,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/busbud/hot-shots/pulls/1"},"html":{"href":"https://github.com/busbud/hot-shots/pull/1"},"issue":{"href":"https://api.github.com/repos/busbud/hot-shots/issues/1"},"comments":{"href":"https://api.github.com/repos/busbud/hot-shots/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/busbud/hot-shots/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/busbud/hot-shots/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/busbud/hot-shots/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/busbud/hot-shots/statuses/65b3e1a156a0a9d642c6febb72a41d8ecb170028"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"crondinini"}}