{"action":"created","comment":{"url":"https://api.github.com/repos/elastic/beats/pulls/comments/206311303","pull_request_review_id":141704211,"id":206311303,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNjMxMTMwMw==","diff_hunk":"@@ -0,0 +1,73 @@\n+package main\n+\n+import (\n+\t\"os\"\n+\t\"fmt\"\n+\t\"flag\"\n+\t\"github.com/ewgRa/ci-utils/src/diff_liner\"\n+\t\"github.com/ewgRa/gocsfixer\"\n+\t\"github.com/google/go-github/github\"\n+\t\"encoding/json\"","path":"script/csfixer/main.go","position":10,"original_position":10,"commit_id":"3f2be2285be79c12d36bab98eb1e2b2a878bdabc","original_commit_id":"3f2be2285be79c12d36bab98eb1e2b2a878bdabc","user":{"login":"bot-ci","id":39350638,"node_id":"MDQ6VXNlcjM5MzUwNjM4","avatar_url":"https://avatars0.githubusercontent.com/u/39350638?v=4","gravatar_id":"","url":"https://api.github.com/users/bot-ci","html_url":"https://github.com/bot-ci","followers_url":"https://api.github.com/users/bot-ci/followers","following_url":"https://api.github.com/users/bot-ci/following{/other_user}","gists_url":"https://api.github.com/users/bot-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/bot-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bot-ci/subscriptions","organizations_url":"https://api.github.com/users/bot-ci/orgs","repos_url":"https://api.github.com/users/bot-ci/repos","events_url":"https://api.github.com/users/bot-ci/events{/privacy}","received_events_url":"https://api.github.com/users/bot-ci/received_events","type":"User","site_admin":false},"body":"[recommendation] Group stdLib imports","created_at":"2018-07-30T20:32:13Z","updated_at":"2018-07-30T20:32:13Z","html_url":"https://github.com/elastic/beats/pull/6496#discussion_r206311303","pull_request_url":"https://api.github.com/repos/elastic/beats/pulls/6496","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/elastic/beats/pulls/comments/206311303"},"html":{"href":"https://github.com/elastic/beats/pull/6496#discussion_r206311303"},"pull_request":{"href":"https://api.github.com/repos/elastic/beats/pulls/6496"}}},"pull_request":{"url":"https://api.github.com/repos/elastic/beats/pulls/6496","id":172752423,"node_id":"MDExOlB1bGxSZXF1ZXN0MTcyNzUyNDIz","html_url":"https://github.com/elastic/beats/pull/6496","diff_url":"https://github.com/elastic/beats/pull/6496.diff","patch_url":"https://github.com/elastic/beats/pull/6496.patch","issue_url":"https://api.github.com/repos/elastic/beats/issues/6496","number":6496,"state":"open","locked":false,"title":"Elastic linter","user":{"login":"ewgRa","id":735804,"node_id":"MDQ6VXNlcjczNTgwNA==","avatar_url":"https://avatars0.githubusercontent.com/u/735804?v=4","gravatar_id":"","url":"https://api.github.com/users/ewgRa","html_url":"https://github.com/ewgRa","followers_url":"https://api.github.com/users/ewgRa/followers","following_url":"https://api.github.com/users/ewgRa/following{/other_user}","gists_url":"https://api.github.com/users/ewgRa/gists{/gist_id}","starred_url":"https://api.github.com/users/ewgRa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewgRa/subscriptions","organizations_url":"https://api.github.com/users/ewgRa/orgs","repos_url":"https://api.github.com/users/ewgRa/repos","events_url":"https://api.github.com/users/ewgRa/events{/privacy}","received_events_url":"https://api.github.com/users/ewgRa/received_events","type":"User","site_admin":false},"body":"PR for elastic coding style checks (#6273), now support check of - \"no new line before error check\" as only one well known and described.\r\n\r\nSome demo of results, how it works with comments, that was created by CI: \r\nhttps://github.com/ewgRa/beats/pull/3\r\nhttps://github.com/ewgRa/beats/pull/2\r\n\r\nSome readme (not so friendly now, but more or less give explanations): https://github.com/ewgRa/gocsfixer/blob/master/README.md\r\n\r\nFor usage, there GOCSFIXER_GITHUB_TOKEN env must be set in travis repository settings, it is \"Access Key\" with public_repo rights.","created_at":"2018-03-05T00:36:33Z","updated_at":"2018-07-30T20:32:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"214ef1d0ee7e88448b4ba75bfa223bdad882a070","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":572330933,"node_id":"MDU6TGFiZWw1NzIzMzA5MzM=","url":"https://api.github.com/repos/elastic/beats/labels/:Infra","name":":Infra","color":"ffffff","default":false},{"id":364269915,"node_id":"MDU6TGFiZWwzNjQyNjk5MTU=","url":"https://api.github.com/repos/elastic/beats/labels/:Testing","name":":Testing","color":"ffffff","default":false},{"id":227508070,"node_id":"MDU6TGFiZWwyMjc1MDgwNzA=","url":"https://api.github.com/repos/elastic/beats/labels/discuss","name":"discuss","color":"ffa500","default":false},{"id":228068770,"node_id":"MDU6TGFiZWwyMjgwNjg3NzA=","url":"https://api.github.com/repos/elastic/beats/labels/review","name":"review","color":"207de5","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/elastic/beats/pulls/6496/commits","review_comments_url":"https://api.github.com/repos/elastic/beats/pulls/6496/comments","review_comment_url":"https://api.github.com/repos/elastic/beats/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elastic/beats/issues/6496/comments","statuses_url":"https://api.github.com/repos/elastic/beats/statuses/3f2be2285be79c12d36bab98eb1e2b2a878bdabc","head":{"label":"ewgRa:gocsfixer","ref":"gocsfixer","sha":"3f2be2285be79c12d36bab98eb1e2b2a878bdabc","user":{"login":"ewgRa","id":735804,"node_id":"MDQ6VXNlcjczNTgwNA==","avatar_url":"https://avatars0.githubusercontent.com/u/735804?v=4","gravatar_id":"","url":"https://api.github.com/users/ewgRa","html_url":"https://github.com/ewgRa","followers_url":"https://api.github.com/users/ewgRa/followers","following_url":"https://api.github.com/users/ewgRa/following{/other_user}","gists_url":"https://api.github.com/users/ewgRa/gists{/gist_id}","starred_url":"https://api.github.com/users/ewgRa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewgRa/subscriptions","organizations_url":"https://api.github.com/users/ewgRa/orgs","repos_url":"https://api.github.com/users/ewgRa/repos","events_url":"https://api.github.com/users/ewgRa/events{/privacy}","received_events_url":"https://api.github.com/users/ewgRa/received_events","type":"User","site_admin":false},"repo":{"id":51211653,"node_id":"MDEwOlJlcG9zaXRvcnk1MTIxMTY1Mw==","name":"beats","full_name":"ewgRa/beats","owner":{"login":"ewgRa","id":735804,"node_id":"MDQ6VXNlcjczNTgwNA==","avatar_url":"https://avatars0.githubusercontent.com/u/735804?v=4","gravatar_id":"","url":"https://api.github.com/users/ewgRa","html_url":"https://github.com/ewgRa","followers_url":"https://api.github.com/users/ewgRa/followers","following_url":"https://api.github.com/users/ewgRa/following{/other_user}","gists_url":"https://api.github.com/users/ewgRa/gists{/gist_id}","starred_url":"https://api.github.com/users/ewgRa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewgRa/subscriptions","organizations_url":"https://api.github.com/users/ewgRa/orgs","repos_url":"https://api.github.com/users/ewgRa/repos","events_url":"https://api.github.com/users/ewgRa/events{/privacy}","received_events_url":"https://api.github.com/users/ewgRa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ewgRa/beats","description":"Beats - Lightweight shippers for Elasticsearch & Logstash ","fork":true,"url":"https://api.github.com/repos/ewgRa/beats","forks_url":"https://api.github.com/repos/ewgRa/beats/forks","keys_url":"https://api.github.com/repos/ewgRa/beats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ewgRa/beats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ewgRa/beats/teams","hooks_url":"https://api.github.com/repos/ewgRa/beats/hooks","issue_events_url":"https://api.github.com/repos/ewgRa/beats/issues/events{/number}","events_url":"https://api.github.com/repos/ewgRa/beats/events","assignees_url":"https://api.github.com/repos/ewgRa/beats/assignees{/user}","branches_url":"https://api.github.com/repos/ewgRa/beats/branches{/branch}","tags_url":"https://api.github.com/repos/ewgRa/beats/tags","blobs_url":"https://api.github.com/repos/ewgRa/beats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ewgRa/beats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ewgRa/beats/git/refs{/sha}","trees_url":"https://api.github.com/repos/ewgRa/beats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ewgRa/beats/statuses/{sha}","languages_url":"https://api.github.com/repos/ewgRa/beats/languages","stargazers_url":"https://api.github.com/repos/ewgRa/beats/stargazers","contributors_url":"https://api.github.com/repos/ewgRa/beats/contributors","subscribers_url":"https://api.github.com/repos/ewgRa/beats/subscribers","subscription_url":"https://api.github.com/repos/ewgRa/beats/subscription","commits_url":"https://api.github.com/repos/ewgRa/beats/commits{/sha}","git_commits_url":"https://api.github.com/repos/ewgRa/beats/git/commits{/sha}","comments_url":"https://api.github.com/repos/ewgRa/beats/comments{/number}","issue_comment_url":"https://api.github.com/repos/ewgRa/beats/issues/comments{/number}","contents_url":"https://api.github.com/repos/ewgRa/beats/contents/{+path}","compare_url":"https://api.github.com/repos/ewgRa/beats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ewgRa/beats/merges","archive_url":"https://api.github.com/repos/ewgRa/beats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ewgRa/beats/downloads","issues_url":"https://api.github.com/repos/ewgRa/beats/issues{/number}","pulls_url":"https://api.github.com/repos/ewgRa/beats/pulls{/number}","milestones_url":"https://api.github.com/repos/ewgRa/beats/milestones{/number}","notifications_url":"https://api.github.com/repos/ewgRa/beats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ewgRa/beats/labels{/name}","releases_url":"https://api.github.com/repos/ewgRa/beats/releases{/id}","deployments_url":"https://api.github.com/repos/ewgRa/beats/deployments","created_at":"2016-02-06T16:59:48Z","updated_at":"2018-07-30T19:53:59Z","pushed_at":"2018-07-30T20:29:43Z","git_url":"git://github.com/ewgRa/beats.git","ssh_url":"git@github.com:ewgRa/beats.git","clone_url":"https://github.com/ewgRa/beats.git","svn_url":"https://github.com/ewgRa/beats","homepage":"https://www.elastic.co/products/beats","size":80963,"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":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"elastic:master","ref":"master","sha":"dba0f7c6d7ed584f1ddb448832e9f2f63f7cb66f","user":{"login":"elastic","id":6764390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3NjQzOTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6764390?v=4","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"repo":{"id":16554739,"node_id":"MDEwOlJlcG9zaXRvcnkxNjU1NDczOQ==","name":"beats","full_name":"elastic/beats","owner":{"login":"elastic","id":6764390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3NjQzOTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6764390?v=4","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elastic/beats","description":":tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash ","fork":false,"url":"https://api.github.com/repos/elastic/beats","forks_url":"https://api.github.com/repos/elastic/beats/forks","keys_url":"https://api.github.com/repos/elastic/beats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elastic/beats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elastic/beats/teams","hooks_url":"https://api.github.com/repos/elastic/beats/hooks","issue_events_url":"https://api.github.com/repos/elastic/beats/issues/events{/number}","events_url":"https://api.github.com/repos/elastic/beats/events","assignees_url":"https://api.github.com/repos/elastic/beats/assignees{/user}","branches_url":"https://api.github.com/repos/elastic/beats/branches{/branch}","tags_url":"https://api.github.com/repos/elastic/beats/tags","blobs_url":"https://api.github.com/repos/elastic/beats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elastic/beats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elastic/beats/git/refs{/sha}","trees_url":"https://api.github.com/repos/elastic/beats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elastic/beats/statuses/{sha}","languages_url":"https://api.github.com/repos/elastic/beats/languages","stargazers_url":"https://api.github.com/repos/elastic/beats/stargazers","contributors_url":"https://api.github.com/repos/elastic/beats/contributors","subscribers_url":"https://api.github.com/repos/elastic/beats/subscribers","subscription_url":"https://api.github.com/repos/elastic/beats/subscription","commits_url":"https://api.github.com/repos/elastic/beats/commits{/sha}","git_commits_url":"https://api.github.com/repos/elastic/beats/git/commits{/sha}","comments_url":"https://api.github.com/repos/elastic/beats/comments{/number}","issue_comment_url":"https://api.github.com/repos/elastic/beats/issues/comments{/number}","contents_url":"https://api.github.com/repos/elastic/beats/contents/{+path}","compare_url":"https://api.github.com/repos/elastic/beats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elastic/beats/merges","archive_url":"https://api.github.com/repos/elastic/beats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elastic/beats/downloads","issues_url":"https://api.github.com/repos/elastic/beats/issues{/number}","pulls_url":"https://api.github.com/repos/elastic/beats/pulls{/number}","milestones_url":"https://api.github.com/repos/elastic/beats/milestones{/number}","notifications_url":"https://api.github.com/repos/elastic/beats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elastic/beats/labels{/name}","releases_url":"https://api.github.com/repos/elastic/beats/releases{/id}","deployments_url":"https://api.github.com/repos/elastic/beats/deployments","created_at":"2014-02-05T19:01:02Z","updated_at":"2018-07-30T20:01:25Z","pushed_at":"2018-07-30T20:29:45Z","git_url":"git://github.com/elastic/beats.git","ssh_url":"git@github.com:elastic/beats.git","clone_url":"https://github.com/elastic/beats.git","svn_url":"https://github.com/elastic/beats","homepage":"https://www.elastic.co/products/beats","size":86031,"stargazers_count":5901,"watchers_count":5901,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1825,"mirror_url":null,"archived":false,"open_issues_count":859,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1825,"open_issues":859,"watchers":5901,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elastic/beats/pulls/6496"},"html":{"href":"https://github.com/elastic/beats/pull/6496"},"issue":{"href":"https://api.github.com/repos/elastic/beats/issues/6496"},"comments":{"href":"https://api.github.com/repos/elastic/beats/issues/6496/comments"},"review_comments":{"href":"https://api.github.com/repos/elastic/beats/pulls/6496/comments"},"review_comment":{"href":"https://api.github.com/repos/elastic/beats/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elastic/beats/pulls/6496/commits"},"statuses":{"href":"https://api.github.com/repos/elastic/beats/statuses/3f2be2285be79c12d36bab98eb1e2b2a878bdabc"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"bot-ci"}}