{"action":"created","comment":{"url":"https://api.github.com/repos/userdive/agent.js/pulls/comments/169510535","pull_request_review_id":98048129,"id":169510535,"diff_hunk":"@@ -75,8 +83,37 @@ function pathname2href (pathname: string) {\n   return pathname\n }\n \n+function cookieClientId (\n+  auto: boolean,\n+  cookieName: string,\n+  cookieDomain: string,\n+  cookieExpires: number\n+) {\n+  let userId\n+  if (!userId) {\n+    if (auto) {\n+      userId = findOrCreateClientIdAuto(cookieName, cookieExpires)\n+    } else {\n+      userId = findOrCreateClientId(cookieName, cookieDomain, cookieExpires)\n+    }\n+  }\n+  return userId\n+}\n+\n+function queryStringClientId (\n+  cookieName: string,\n+  cookieExpires: number\n+): string | undefined {\n+  const userId = findClientIdFromQueryString()\n+  if (userId) {\n+    findOrCreateClientIdAuto(cookieName, cookieExpires, userId)","path":"packages/agent/src/core.ts","position":64,"original_position":64,"commit_id":"c8b1f02211339b567afb41f685a35a6c38271da0","original_commit_id":"c8b1f02211339b567afb41f685a35a6c38271da0","user":{"login":"9renpoto","id":520693,"avatar_url":"https://avatars3.githubusercontent.com/u/520693?v=4","gravatar_id":"","url":"https://api.github.com/users/9renpoto","html_url":"https://github.com/9renpoto","followers_url":"https://api.github.com/users/9renpoto/followers","following_url":"https://api.github.com/users/9renpoto/following{/other_user}","gists_url":"https://api.github.com/users/9renpoto/gists{/gist_id}","starred_url":"https://api.github.com/users/9renpoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9renpoto/subscriptions","organizations_url":"https://api.github.com/users/9renpoto/orgs","repos_url":"https://api.github.com/users/9renpoto/repos","events_url":"https://api.github.com/users/9renpoto/events{/privacy}","received_events_url":"https://api.github.com/users/9renpoto/received_events","type":"User","site_admin":false},"body":"if usedId find query string  && cookie \r\n  is not override cookie ?\r\n","created_at":"2018-02-21T01:10:34Z","updated_at":"2018-02-21T01:10:34Z","html_url":"https://github.com/userdive/agent.js/pull/212#discussion_r169510535","pull_request_url":"https://api.github.com/repos/userdive/agent.js/pulls/212","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/userdive/agent.js/pulls/comments/169510535"},"html":{"href":"https://github.com/userdive/agent.js/pull/212#discussion_r169510535"},"pull_request":{"href":"https://api.github.com/repos/userdive/agent.js/pulls/212"}}},"pull_request":{"url":"https://api.github.com/repos/userdive/agent.js/pulls/212","id":167048737,"html_url":"https://github.com/userdive/agent.js/pull/212","diff_url":"https://github.com/userdive/agent.js/pull/212.diff","patch_url":"https://github.com/userdive/agent.js/pull/212.patch","issue_url":"https://api.github.com/repos/userdive/agent.js/issues/212","number":212,"state":"open","locked":false,"title":"linker plugin","user":{"login":"shoota","id":1879418,"avatar_url":"https://avatars2.githubusercontent.com/u/1879418?v=4","gravatar_id":"","url":"https://api.github.com/users/shoota","html_url":"https://github.com/shoota","followers_url":"https://api.github.com/users/shoota/followers","following_url":"https://api.github.com/users/shoota/following{/other_user}","gists_url":"https://api.github.com/users/shoota/gists{/gist_id}","starred_url":"https://api.github.com/users/shoota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoota/subscriptions","organizations_url":"https://api.github.com/users/shoota/orgs","repos_url":"https://api.github.com/users/shoota/repos","events_url":"https://api.github.com/users/shoota/events{/privacy}","received_events_url":"https://api.github.com/users/shoota/received_events","type":"User","site_admin":false},"body":"# TL;DR\r\n\r\nCloses #117 \r\n","created_at":"2018-02-05T03:03:03Z","updated_at":"2018-02-21T01:10:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b88710191154b0241a0770c7521871a25410f7d","assignee":{"login":"shoota","id":1879418,"avatar_url":"https://avatars2.githubusercontent.com/u/1879418?v=4","gravatar_id":"","url":"https://api.github.com/users/shoota","html_url":"https://github.com/shoota","followers_url":"https://api.github.com/users/shoota/followers","following_url":"https://api.github.com/users/shoota/following{/other_user}","gists_url":"https://api.github.com/users/shoota/gists{/gist_id}","starred_url":"https://api.github.com/users/shoota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoota/subscriptions","organizations_url":"https://api.github.com/users/shoota/orgs","repos_url":"https://api.github.com/users/shoota/repos","events_url":"https://api.github.com/users/shoota/events{/privacy}","received_events_url":"https://api.github.com/users/shoota/received_events","type":"User","site_admin":false},"assignees":[{"login":"shoota","id":1879418,"avatar_url":"https://avatars2.githubusercontent.com/u/1879418?v=4","gravatar_id":"","url":"https://api.github.com/users/shoota","html_url":"https://github.com/shoota","followers_url":"https://api.github.com/users/shoota/followers","following_url":"https://api.github.com/users/shoota/following{/other_user}","gists_url":"https://api.github.com/users/shoota/gists{/gist_id}","starred_url":"https://api.github.com/users/shoota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoota/subscriptions","organizations_url":"https://api.github.com/users/shoota/orgs","repos_url":"https://api.github.com/users/shoota/repos","events_url":"https://api.github.com/users/shoota/events{/privacy}","received_events_url":"https://api.github.com/users/shoota/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":545918601,"url":"https://api.github.com/repos/userdive/agent.js/labels/QA","name":"QA","color":"ededed","default":false}],"milestone":{"url":"https://api.github.com/repos/userdive/agent.js/milestones/25","html_url":"https://github.com/userdive/agent.js/milestone/25","labels_url":"https://api.github.com/repos/userdive/agent.js/milestones/25/labels","id":3051017,"number":25,"title":"v0.12.0","description":"","creator":{"login":"9renpoto","id":520693,"avatar_url":"https://avatars3.githubusercontent.com/u/520693?v=4","gravatar_id":"","url":"https://api.github.com/users/9renpoto","html_url":"https://github.com/9renpoto","followers_url":"https://api.github.com/users/9renpoto/followers","following_url":"https://api.github.com/users/9renpoto/following{/other_user}","gists_url":"https://api.github.com/users/9renpoto/gists{/gist_id}","starred_url":"https://api.github.com/users/9renpoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9renpoto/subscriptions","organizations_url":"https://api.github.com/users/9renpoto/orgs","repos_url":"https://api.github.com/users/9renpoto/repos","events_url":"https://api.github.com/users/9renpoto/events{/privacy}","received_events_url":"https://api.github.com/users/9renpoto/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":31,"state":"open","created_at":"2018-01-21T08:10:30Z","updated_at":"2018-02-21T00:45:11Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/userdive/agent.js/pulls/212/commits","review_comments_url":"https://api.github.com/repos/userdive/agent.js/pulls/212/comments","review_comment_url":"https://api.github.com/repos/userdive/agent.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/userdive/agent.js/issues/212/comments","statuses_url":"https://api.github.com/repos/userdive/agent.js/statuses/c8b1f02211339b567afb41f685a35a6c38271da0","head":{"label":"userdive:feature/linker","ref":"feature/linker","sha":"c8b1f02211339b567afb41f685a35a6c38271da0","user":{"login":"userdive","id":20083706,"avatar_url":"https://avatars2.githubusercontent.com/u/20083706?v=4","gravatar_id":"","url":"https://api.github.com/users/userdive","html_url":"https://github.com/userdive","followers_url":"https://api.github.com/users/userdive/followers","following_url":"https://api.github.com/users/userdive/following{/other_user}","gists_url":"https://api.github.com/users/userdive/gists{/gist_id}","starred_url":"https://api.github.com/users/userdive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/userdive/subscriptions","organizations_url":"https://api.github.com/users/userdive/orgs","repos_url":"https://api.github.com/users/userdive/repos","events_url":"https://api.github.com/users/userdive/events{/privacy}","received_events_url":"https://api.github.com/users/userdive/received_events","type":"Organization","site_admin":false},"repo":{"id":82875415,"name":"agent.js","full_name":"userdive/agent.js","owner":{"login":"userdive","id":20083706,"avatar_url":"https://avatars2.githubusercontent.com/u/20083706?v=4","gravatar_id":"","url":"https://api.github.com/users/userdive","html_url":"https://github.com/userdive","followers_url":"https://api.github.com/users/userdive/followers","following_url":"https://api.github.com/users/userdive/following{/other_user}","gists_url":"https://api.github.com/users/userdive/gists{/gist_id}","starred_url":"https://api.github.com/users/userdive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/userdive/subscriptions","organizations_url":"https://api.github.com/users/userdive/orgs","repos_url":"https://api.github.com/users/userdive/repos","events_url":"https://api.github.com/users/userdive/events{/privacy}","received_events_url":"https://api.github.com/users/userdive/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/userdive/agent.js","description":":woman_technologist: Official USERDIVE module for webpage analytics","fork":false,"url":"https://api.github.com/repos/userdive/agent.js","forks_url":"https://api.github.com/repos/userdive/agent.js/forks","keys_url":"https://api.github.com/repos/userdive/agent.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/userdive/agent.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/userdive/agent.js/teams","hooks_url":"https://api.github.com/repos/userdive/agent.js/hooks","issue_events_url":"https://api.github.com/repos/userdive/agent.js/issues/events{/number}","events_url":"https://api.github.com/repos/userdive/agent.js/events","assignees_url":"https://api.github.com/repos/userdive/agent.js/assignees{/user}","branches_url":"https://api.github.com/repos/userdive/agent.js/branches{/branch}","tags_url":"https://api.github.com/repos/userdive/agent.js/tags","blobs_url":"https://api.github.com/repos/userdive/agent.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/userdive/agent.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/userdive/agent.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/userdive/agent.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/userdive/agent.js/statuses/{sha}","languages_url":"https://api.github.com/repos/userdive/agent.js/languages","stargazers_url":"https://api.github.com/repos/userdive/agent.js/stargazers","contributors_url":"https://api.github.com/repos/userdive/agent.js/contributors","subscribers_url":"https://api.github.com/repos/userdive/agent.js/subscribers","subscription_url":"https://api.github.com/repos/userdive/agent.js/subscription","commits_url":"https://api.github.com/repos/userdive/agent.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/userdive/agent.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/userdive/agent.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/userdive/agent.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/userdive/agent.js/contents/{+path}","compare_url":"https://api.github.com/repos/userdive/agent.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/userdive/agent.js/merges","archive_url":"https://api.github.com/repos/userdive/agent.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/userdive/agent.js/downloads","issues_url":"https://api.github.com/repos/userdive/agent.js/issues{/number}","pulls_url":"https://api.github.com/repos/userdive/agent.js/pulls{/number}","milestones_url":"https://api.github.com/repos/userdive/agent.js/milestones{/number}","notifications_url":"https://api.github.com/repos/userdive/agent.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/userdive/agent.js/labels{/name}","releases_url":"https://api.github.com/repos/userdive/agent.js/releases{/id}","deployments_url":"https://api.github.com/repos/userdive/agent.js/deployments","created_at":"2017-02-23T02:31:57Z","updated_at":"2018-02-05T04:01:16Z","pushed_at":"2018-02-21T01:08:42Z","git_url":"git://github.com/userdive/agent.js.git","ssh_url":"git@github.com:userdive/agent.js.git","clone_url":"https://github.com/userdive/agent.js.git","svn_url":"https://github.com/userdive/agent.js","homepage":"","size":1617,"stargazers_count":5,"watchers_count":5,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":1,"open_issues":9,"watchers":5,"default_branch":"master"}},"base":{"label":"userdive:master","ref":"master","sha":"ac7bf3d943c1692d729600b92e08b6e8f7f09a83","user":{"login":"userdive","id":20083706,"avatar_url":"https://avatars2.githubusercontent.com/u/20083706?v=4","gravatar_id":"","url":"https://api.github.com/users/userdive","html_url":"https://github.com/userdive","followers_url":"https://api.github.com/users/userdive/followers","following_url":"https://api.github.com/users/userdive/following{/other_user}","gists_url":"https://api.github.com/users/userdive/gists{/gist_id}","starred_url":"https://api.github.com/users/userdive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/userdive/subscriptions","organizations_url":"https://api.github.com/users/userdive/orgs","repos_url":"https://api.github.com/users/userdive/repos","events_url":"https://api.github.com/users/userdive/events{/privacy}","received_events_url":"https://api.github.com/users/userdive/received_events","type":"Organization","site_admin":false},"repo":{"id":82875415,"name":"agent.js","full_name":"userdive/agent.js","owner":{"login":"userdive","id":20083706,"avatar_url":"https://avatars2.githubusercontent.com/u/20083706?v=4","gravatar_id":"","url":"https://api.github.com/users/userdive","html_url":"https://github.com/userdive","followers_url":"https://api.github.com/users/userdive/followers","following_url":"https://api.github.com/users/userdive/following{/other_user}","gists_url":"https://api.github.com/users/userdive/gists{/gist_id}","starred_url":"https://api.github.com/users/userdive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/userdive/subscriptions","organizations_url":"https://api.github.com/users/userdive/orgs","repos_url":"https://api.github.com/users/userdive/repos","events_url":"https://api.github.com/users/userdive/events{/privacy}","received_events_url":"https://api.github.com/users/userdive/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/userdive/agent.js","description":":woman_technologist: Official USERDIVE module for webpage analytics","fork":false,"url":"https://api.github.com/repos/userdive/agent.js","forks_url":"https://api.github.com/repos/userdive/agent.js/forks","keys_url":"https://api.github.com/repos/userdive/agent.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/userdive/agent.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/userdive/agent.js/teams","hooks_url":"https://api.github.com/repos/userdive/agent.js/hooks","issue_events_url":"https://api.github.com/repos/userdive/agent.js/issues/events{/number}","events_url":"https://api.github.com/repos/userdive/agent.js/events","assignees_url":"https://api.github.com/repos/userdive/agent.js/assignees{/user}","branches_url":"https://api.github.com/repos/userdive/agent.js/branches{/branch}","tags_url":"https://api.github.com/repos/userdive/agent.js/tags","blobs_url":"https://api.github.com/repos/userdive/agent.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/userdive/agent.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/userdive/agent.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/userdive/agent.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/userdive/agent.js/statuses/{sha}","languages_url":"https://api.github.com/repos/userdive/agent.js/languages","stargazers_url":"https://api.github.com/repos/userdive/agent.js/stargazers","contributors_url":"https://api.github.com/repos/userdive/agent.js/contributors","subscribers_url":"https://api.github.com/repos/userdive/agent.js/subscribers","subscription_url":"https://api.github.com/repos/userdive/agent.js/subscription","commits_url":"https://api.github.com/repos/userdive/agent.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/userdive/agent.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/userdive/agent.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/userdive/agent.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/userdive/agent.js/contents/{+path}","compare_url":"https://api.github.com/repos/userdive/agent.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/userdive/agent.js/merges","archive_url":"https://api.github.com/repos/userdive/agent.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/userdive/agent.js/downloads","issues_url":"https://api.github.com/repos/userdive/agent.js/issues{/number}","pulls_url":"https://api.github.com/repos/userdive/agent.js/pulls{/number}","milestones_url":"https://api.github.com/repos/userdive/agent.js/milestones{/number}","notifications_url":"https://api.github.com/repos/userdive/agent.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/userdive/agent.js/labels{/name}","releases_url":"https://api.github.com/repos/userdive/agent.js/releases{/id}","deployments_url":"https://api.github.com/repos/userdive/agent.js/deployments","created_at":"2017-02-23T02:31:57Z","updated_at":"2018-02-05T04:01:16Z","pushed_at":"2018-02-21T01:08:42Z","git_url":"git://github.com/userdive/agent.js.git","ssh_url":"git@github.com:userdive/agent.js.git","clone_url":"https://github.com/userdive/agent.js.git","svn_url":"https://github.com/userdive/agent.js","homepage":"","size":1617,"stargazers_count":5,"watchers_count":5,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":1,"open_issues":9,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/userdive/agent.js/pulls/212"},"html":{"href":"https://github.com/userdive/agent.js/pull/212"},"issue":{"href":"https://api.github.com/repos/userdive/agent.js/issues/212"},"comments":{"href":"https://api.github.com/repos/userdive/agent.js/issues/212/comments"},"review_comments":{"href":"https://api.github.com/repos/userdive/agent.js/pulls/212/comments"},"review_comment":{"href":"https://api.github.com/repos/userdive/agent.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/userdive/agent.js/pulls/212/commits"},"statuses":{"href":"https://api.github.com/repos/userdive/agent.js/statuses/c8b1f02211339b567afb41f685a35a6c38271da0"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"9renpoto"}}