{"action":"created","comment":{"url":"https://api.github.com/repos/qiniu/logkit/pulls/comments/152733431","pull_request_review_id":78638486,"id":152733431,"diff_hunk":"@@ -9,15 +9,17 @@ import (\n \t\"sync/atomic\"\n \t\"time\"\n \n+\telasticV6 \"github.com/olivere/elastic\"","path":"reader/elastic.go","position":4,"original_position":4,"commit_id":"8f03e80d5328d525545006f5d7f828b91c397e12","original_commit_id":"8f03e80d5328d525545006f5d7f828b91c397e12","user":{"login":"andrewei1316","id":11746576,"avatar_url":"https://avatars2.githubusercontent.com/u/11746576?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewei1316","html_url":"https://github.com/andrewei1316","followers_url":"https://api.github.com/users/andrewei1316/followers","following_url":"https://api.github.com/users/andrewei1316/following{/other_user}","gists_url":"https://api.github.com/users/andrewei1316/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewei1316/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewei1316/subscriptions","organizations_url":"https://api.github.com/users/andrewei1316/orgs","repos_url":"https://api.github.com/users/andrewei1316/repos","events_url":"https://api.github.com/users/andrewei1316/events{/privacy}","received_events_url":"https://api.github.com/users/andrewei1316/received_events","type":"User","site_admin":false},"body":"golang中包引用的顺序一般为：\r\n\r\n基础包 ，如“time”\r\n项目中自己的包，如“github.com/qiniu/logkit/utils”\r\n第三方包 如 \"github.com/olivere/elastic\"\r\n改下顺序哈","created_at":"2017-11-23T07:26:28Z","updated_at":"2017-11-23T07:26:29Z","html_url":"https://github.com/qiniu/logkit/pull/212#discussion_r152733431","pull_request_url":"https://api.github.com/repos/qiniu/logkit/pulls/212","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/qiniu/logkit/pulls/comments/152733431"},"html":{"href":"https://github.com/qiniu/logkit/pull/212#discussion_r152733431"},"pull_request":{"href":"https://api.github.com/repos/qiniu/logkit/pulls/212"}}},"pull_request":{"url":"https://api.github.com/repos/qiniu/logkit/pulls/212","id":153899237,"html_url":"https://github.com/qiniu/logkit/pull/212","diff_url":"https://github.com/qiniu/logkit/pull/212.diff","patch_url":"https://github.com/qiniu/logkit/pull/212.patch","issue_url":"https://api.github.com/repos/qiniu/logkit/issues/212","number":212,"state":"open","locked":false,"title":"Feature/elastic v6","user":{"login":"yangwenmai","id":1710912,"avatar_url":"https://avatars3.githubusercontent.com/u/1710912?v=4","gravatar_id":"","url":"https://api.github.com/users/yangwenmai","html_url":"https://github.com/yangwenmai","followers_url":"https://api.github.com/users/yangwenmai/followers","following_url":"https://api.github.com/users/yangwenmai/following{/other_user}","gists_url":"https://api.github.com/users/yangwenmai/gists{/gist_id}","starred_url":"https://api.github.com/users/yangwenmai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yangwenmai/subscriptions","organizations_url":"https://api.github.com/users/yangwenmai/orgs","repos_url":"https://api.github.com/users/yangwenmai/repos","events_url":"https://api.github.com/users/yangwenmai/events{/privacy}","received_events_url":"https://api.github.com/users/yangwenmai/received_events","type":"User","site_admin":false},"body":"## Fixes [#121]\r\n\r\n## Changes\r\n\r\n  - [x] fix issue #121 \r\n \r\n## Reviewers\r\n\r\n  - [ ] @wonderflow please review\r\n","created_at":"2017-11-21T14:06:31Z","updated_at":"2017-11-23T07:26:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72d9431f5be80432a6f57b1d4a72263187e78207","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/qiniu/logkit/pulls/212/commits","review_comments_url":"https://api.github.com/repos/qiniu/logkit/pulls/212/comments","review_comment_url":"https://api.github.com/repos/qiniu/logkit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qiniu/logkit/issues/212/comments","statuses_url":"https://api.github.com/repos/qiniu/logkit/statuses/8f03e80d5328d525545006f5d7f828b91c397e12","head":{"label":"yangwenmai:feature/elastic_v6","ref":"feature/elastic_v6","sha":"8f03e80d5328d525545006f5d7f828b91c397e12","user":{"login":"yangwenmai","id":1710912,"avatar_url":"https://avatars3.githubusercontent.com/u/1710912?v=4","gravatar_id":"","url":"https://api.github.com/users/yangwenmai","html_url":"https://github.com/yangwenmai","followers_url":"https://api.github.com/users/yangwenmai/followers","following_url":"https://api.github.com/users/yangwenmai/following{/other_user}","gists_url":"https://api.github.com/users/yangwenmai/gists{/gist_id}","starred_url":"https://api.github.com/users/yangwenmai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yangwenmai/subscriptions","organizations_url":"https://api.github.com/users/yangwenmai/orgs","repos_url":"https://api.github.com/users/yangwenmai/repos","events_url":"https://api.github.com/users/yangwenmai/events{/privacy}","received_events_url":"https://api.github.com/users/yangwenmai/received_events","type":"User","site_admin":false},"repo":{"id":104689123,"name":"logkit","full_name":"yangwenmai/logkit","owner":{"login":"yangwenmai","id":1710912,"avatar_url":"https://avatars3.githubusercontent.com/u/1710912?v=4","gravatar_id":"","url":"https://api.github.com/users/yangwenmai","html_url":"https://github.com/yangwenmai","followers_url":"https://api.github.com/users/yangwenmai/followers","following_url":"https://api.github.com/users/yangwenmai/following{/other_user}","gists_url":"https://api.github.com/users/yangwenmai/gists{/gist_id}","starred_url":"https://api.github.com/users/yangwenmai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yangwenmai/subscriptions","organizations_url":"https://api.github.com/users/yangwenmai/orgs","repos_url":"https://api.github.com/users/yangwenmai/repos","events_url":"https://api.github.com/users/yangwenmai/events{/privacy}","received_events_url":"https://api.github.com/users/yangwenmai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yangwenmai/logkit","description":null,"fork":true,"url":"https://api.github.com/repos/yangwenmai/logkit","forks_url":"https://api.github.com/repos/yangwenmai/logkit/forks","keys_url":"https://api.github.com/repos/yangwenmai/logkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yangwenmai/logkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yangwenmai/logkit/teams","hooks_url":"https://api.github.com/repos/yangwenmai/logkit/hooks","issue_events_url":"https://api.github.com/repos/yangwenmai/logkit/issues/events{/number}","events_url":"https://api.github.com/repos/yangwenmai/logkit/events","assignees_url":"https://api.github.com/repos/yangwenmai/logkit/assignees{/user}","branches_url":"https://api.github.com/repos/yangwenmai/logkit/branches{/branch}","tags_url":"https://api.github.com/repos/yangwenmai/logkit/tags","blobs_url":"https://api.github.com/repos/yangwenmai/logkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yangwenmai/logkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yangwenmai/logkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/yangwenmai/logkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yangwenmai/logkit/statuses/{sha}","languages_url":"https://api.github.com/repos/yangwenmai/logkit/languages","stargazers_url":"https://api.github.com/repos/yangwenmai/logkit/stargazers","contributors_url":"https://api.github.com/repos/yangwenmai/logkit/contributors","subscribers_url":"https://api.github.com/repos/yangwenmai/logkit/subscribers","subscription_url":"https://api.github.com/repos/yangwenmai/logkit/subscription","commits_url":"https://api.github.com/repos/yangwenmai/logkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/yangwenmai/logkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/yangwenmai/logkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/yangwenmai/logkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/yangwenmai/logkit/contents/{+path}","compare_url":"https://api.github.com/repos/yangwenmai/logkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yangwenmai/logkit/merges","archive_url":"https://api.github.com/repos/yangwenmai/logkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yangwenmai/logkit/downloads","issues_url":"https://api.github.com/repos/yangwenmai/logkit/issues{/number}","pulls_url":"https://api.github.com/repos/yangwenmai/logkit/pulls{/number}","milestones_url":"https://api.github.com/repos/yangwenmai/logkit/milestones{/number}","notifications_url":"https://api.github.com/repos/yangwenmai/logkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yangwenmai/logkit/labels{/name}","releases_url":"https://api.github.com/repos/yangwenmai/logkit/releases{/id}","deployments_url":"https://api.github.com/repos/yangwenmai/logkit/deployments","created_at":"2017-09-25T01:19:41Z","updated_at":"2017-09-26T13:24:54Z","pushed_at":"2017-11-22T12:50:58Z","git_url":"git://github.com/yangwenmai/logkit.git","ssh_url":"git@github.com:yangwenmai/logkit.git","clone_url":"https://github.com/yangwenmai/logkit.git","svn_url":"https://github.com/yangwenmai/logkit","homepage":"https://qiniu.github.io/pandora-docs/#/util/logkit","size":13313,"stargazers_count":1,"watchers_count":1,"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,"forks":0,"open_issues":0,"watchers":1,"default_branch":"develop"}},"base":{"label":"qiniu:develop","ref":"develop","sha":"e335bc55d4879f433fd0835451adc5c0f600a24a","user":{"login":"qiniu","id":1563636,"avatar_url":"https://avatars2.githubusercontent.com/u/1563636?v=4","gravatar_id":"","url":"https://api.github.com/users/qiniu","html_url":"https://github.com/qiniu","followers_url":"https://api.github.com/users/qiniu/followers","following_url":"https://api.github.com/users/qiniu/following{/other_user}","gists_url":"https://api.github.com/users/qiniu/gists{/gist_id}","starred_url":"https://api.github.com/users/qiniu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiniu/subscriptions","organizations_url":"https://api.github.com/users/qiniu/orgs","repos_url":"https://api.github.com/users/qiniu/repos","events_url":"https://api.github.com/users/qiniu/events{/privacy}","received_events_url":"https://api.github.com/users/qiniu/received_events","type":"Organization","site_admin":false},"repo":{"id":91304426,"name":"logkit","full_name":"qiniu/logkit","owner":{"login":"qiniu","id":1563636,"avatar_url":"https://avatars2.githubusercontent.com/u/1563636?v=4","gravatar_id":"","url":"https://api.github.com/users/qiniu","html_url":"https://github.com/qiniu","followers_url":"https://api.github.com/users/qiniu/followers","following_url":"https://api.github.com/users/qiniu/following{/other_user}","gists_url":"https://api.github.com/users/qiniu/gists{/gist_id}","starred_url":"https://api.github.com/users/qiniu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiniu/subscriptions","organizations_url":"https://api.github.com/users/qiniu/orgs","repos_url":"https://api.github.com/users/qiniu/repos","events_url":"https://api.github.com/users/qiniu/events{/privacy}","received_events_url":"https://api.github.com/users/qiniu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qiniu/logkit","description":null,"fork":false,"url":"https://api.github.com/repos/qiniu/logkit","forks_url":"https://api.github.com/repos/qiniu/logkit/forks","keys_url":"https://api.github.com/repos/qiniu/logkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qiniu/logkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qiniu/logkit/teams","hooks_url":"https://api.github.com/repos/qiniu/logkit/hooks","issue_events_url":"https://api.github.com/repos/qiniu/logkit/issues/events{/number}","events_url":"https://api.github.com/repos/qiniu/logkit/events","assignees_url":"https://api.github.com/repos/qiniu/logkit/assignees{/user}","branches_url":"https://api.github.com/repos/qiniu/logkit/branches{/branch}","tags_url":"https://api.github.com/repos/qiniu/logkit/tags","blobs_url":"https://api.github.com/repos/qiniu/logkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qiniu/logkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qiniu/logkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/qiniu/logkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qiniu/logkit/statuses/{sha}","languages_url":"https://api.github.com/repos/qiniu/logkit/languages","stargazers_url":"https://api.github.com/repos/qiniu/logkit/stargazers","contributors_url":"https://api.github.com/repos/qiniu/logkit/contributors","subscribers_url":"https://api.github.com/repos/qiniu/logkit/subscribers","subscription_url":"https://api.github.com/repos/qiniu/logkit/subscription","commits_url":"https://api.github.com/repos/qiniu/logkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/qiniu/logkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/qiniu/logkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/qiniu/logkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/qiniu/logkit/contents/{+path}","compare_url":"https://api.github.com/repos/qiniu/logkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qiniu/logkit/merges","archive_url":"https://api.github.com/repos/qiniu/logkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qiniu/logkit/downloads","issues_url":"https://api.github.com/repos/qiniu/logkit/issues{/number}","pulls_url":"https://api.github.com/repos/qiniu/logkit/pulls{/number}","milestones_url":"https://api.github.com/repos/qiniu/logkit/milestones{/number}","notifications_url":"https://api.github.com/repos/qiniu/logkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qiniu/logkit/labels{/name}","releases_url":"https://api.github.com/repos/qiniu/logkit/releases{/id}","deployments_url":"https://api.github.com/repos/qiniu/logkit/deployments","created_at":"2017-05-15T06:50:40Z","updated_at":"2017-11-22T13:57:06Z","pushed_at":"2017-11-23T06:13:24Z","git_url":"git://github.com/qiniu/logkit.git","ssh_url":"git@github.com:qiniu/logkit.git","clone_url":"https://github.com/qiniu/logkit.git","svn_url":"https://github.com/qiniu/logkit","homepage":"https://qiniu.github.io/pandora-docs/#/util/logkit","size":13763,"stargazers_count":284,"watchers_count":284,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"archived":false,"open_issues_count":20,"forks":56,"open_issues":20,"watchers":284,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/qiniu/logkit/pulls/212"},"html":{"href":"https://github.com/qiniu/logkit/pull/212"},"issue":{"href":"https://api.github.com/repos/qiniu/logkit/issues/212"},"comments":{"href":"https://api.github.com/repos/qiniu/logkit/issues/212/comments"},"review_comments":{"href":"https://api.github.com/repos/qiniu/logkit/pulls/212/comments"},"review_comment":{"href":"https://api.github.com/repos/qiniu/logkit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qiniu/logkit/pulls/212/commits"},"statuses":{"href":"https://api.github.com/repos/qiniu/logkit/statuses/8f03e80d5328d525545006f5d7f828b91c397e12"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"andrewei1316"}}