{"action":"created","comment":{"url":"https://api.github.com/repos/crifff/test-ci/pulls/comments/93561237","pull_request_review_id":14091295,"id":93561237,"diff_hunk":"@@ -0,0 +1,61 @@\n+package colorable\n+\n+import (\n+\t\"bytes\"\n+\t\"io\"\n+)\n+\n+// NonColorable hold writer but remove escape sequence.\n+type NonColorable struct {\n+\tout     io.Writer\n+\tlastbuf bytes.Buffer\n+}\n+\n+// NewNonColorable return new instance of Writer which remove escape sequence from Writer.\n+func NewNonColorable(w io.Writer) io.Writer {\n+\treturn &NonColorable{out: w}\n+}\n+\n+// Write write data on console\n+func (w *NonColorable) Write(data []byte) (n int, err error) {\n+\ter := bytes.NewReader(data)\n+\tvar bw [1]byte\n+loop:\n+\tfor {\n+\t\tc1, err := er.ReadByte()\n+\t\tif err != nil {\n+\t\t\tbreak loop\n+\t\t}\n+\t\tif c1 != 0x1b {\n+\t\t\tbw[0] = c1\n+\t\t\tw.out.Write(bw[:])\n+\t\t\tcontinue\n+\t\t}\n+\t\tc2, err := er.ReadByte()\n+\t\tif err != nil {\n+\t\t\tw.lastbuf.WriteByte(c1)","path":"vendor/github.com/mattn/go-colorable/noncolorable.go","position":36,"original_position":36,"commit_id":"17ee09045b7e6899c43ec71074fbe18124c1fede","original_commit_id":"17ee09045b7e6899c43ec71074fbe18124c1fede","user":{"login":"crifff","id":953773,"avatar_url":"https://avatars.githubusercontent.com/u/953773?v=3","gravatar_id":"","url":"https://api.github.com/users/crifff","html_url":"https://github.com/crifff","followers_url":"https://api.github.com/users/crifff/followers","following_url":"https://api.github.com/users/crifff/following{/other_user}","gists_url":"https://api.github.com/users/crifff/gists{/gist_id}","starred_url":"https://api.github.com/users/crifff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crifff/subscriptions","organizations_url":"https://api.github.com/users/crifff/orgs","repos_url":"https://api.github.com/users/crifff/repos","events_url":"https://api.github.com/users/crifff/events{/privacy}","received_events_url":"https://api.github.com/users/crifff/received_events","type":"User","site_admin":false},"body":"__[gometalinter]__\n* [errcheck] error return value not checked (w.lastbuf.WriteByte(c1))\n\n<!-- Comment by [SideCI](https://sideci.com) -->","created_at":"2016-12-22T03:29:22Z","updated_at":"2016-12-22T03:29:22Z","html_url":"https://github.com/crifff/test-ci/pull/5#discussion_r93561237","pull_request_url":"https://api.github.com/repos/crifff/test-ci/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/crifff/test-ci/pulls/comments/93561237"},"html":{"href":"https://github.com/crifff/test-ci/pull/5#discussion_r93561237"},"pull_request":{"href":"https://api.github.com/repos/crifff/test-ci/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/crifff/test-ci/pulls/5","id":99043086,"html_url":"https://github.com/crifff/test-ci/pull/5","diff_url":"https://github.com/crifff/test-ci/pull/5.diff","patch_url":"https://github.com/crifff/test-ci/pull/5.patch","issue_url":"https://api.github.com/repos/crifff/test-ci/issues/5","number":5,"state":"open","locked":false,"title":"Govendor","user":{"login":"crifff","id":953773,"avatar_url":"https://avatars.githubusercontent.com/u/953773?v=3","gravatar_id":"","url":"https://api.github.com/users/crifff","html_url":"https://github.com/crifff","followers_url":"https://api.github.com/users/crifff/followers","following_url":"https://api.github.com/users/crifff/following{/other_user}","gists_url":"https://api.github.com/users/crifff/gists{/gist_id}","starred_url":"https://api.github.com/users/crifff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crifff/subscriptions","organizations_url":"https://api.github.com/users/crifff/orgs","repos_url":"https://api.github.com/users/crifff/repos","events_url":"https://api.github.com/users/crifff/events{/privacy}","received_events_url":"https://api.github.com/users/crifff/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-22T03:27:43Z","updated_at":"2016-12-22T03:29:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b857fb12ad724ec1ab34e613f45733983f206f96","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/crifff/test-ci/pulls/5/commits","review_comments_url":"https://api.github.com/repos/crifff/test-ci/pulls/5/comments","review_comment_url":"https://api.github.com/repos/crifff/test-ci/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crifff/test-ci/issues/5/comments","statuses_url":"https://api.github.com/repos/crifff/test-ci/statuses/17ee09045b7e6899c43ec71074fbe18124c1fede","head":{"label":"crifff:govendor","ref":"govendor","sha":"17ee09045b7e6899c43ec71074fbe18124c1fede","user":{"login":"crifff","id":953773,"avatar_url":"https://avatars.githubusercontent.com/u/953773?v=3","gravatar_id":"","url":"https://api.github.com/users/crifff","html_url":"https://github.com/crifff","followers_url":"https://api.github.com/users/crifff/followers","following_url":"https://api.github.com/users/crifff/following{/other_user}","gists_url":"https://api.github.com/users/crifff/gists{/gist_id}","starred_url":"https://api.github.com/users/crifff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crifff/subscriptions","organizations_url":"https://api.github.com/users/crifff/orgs","repos_url":"https://api.github.com/users/crifff/repos","events_url":"https://api.github.com/users/crifff/events{/privacy}","received_events_url":"https://api.github.com/users/crifff/received_events","type":"User","site_admin":false},"repo":{"id":75897831,"name":"test-ci","full_name":"crifff/test-ci","owner":{"login":"crifff","id":953773,"avatar_url":"https://avatars.githubusercontent.com/u/953773?v=3","gravatar_id":"","url":"https://api.github.com/users/crifff","html_url":"https://github.com/crifff","followers_url":"https://api.github.com/users/crifff/followers","following_url":"https://api.github.com/users/crifff/following{/other_user}","gists_url":"https://api.github.com/users/crifff/gists{/gist_id}","starred_url":"https://api.github.com/users/crifff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crifff/subscriptions","organizations_url":"https://api.github.com/users/crifff/orgs","repos_url":"https://api.github.com/users/crifff/repos","events_url":"https://api.github.com/users/crifff/events{/privacy}","received_events_url":"https://api.github.com/users/crifff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crifff/test-ci","description":null,"fork":false,"url":"https://api.github.com/repos/crifff/test-ci","forks_url":"https://api.github.com/repos/crifff/test-ci/forks","keys_url":"https://api.github.com/repos/crifff/test-ci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crifff/test-ci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crifff/test-ci/teams","hooks_url":"https://api.github.com/repos/crifff/test-ci/hooks","issue_events_url":"https://api.github.com/repos/crifff/test-ci/issues/events{/number}","events_url":"https://api.github.com/repos/crifff/test-ci/events","assignees_url":"https://api.github.com/repos/crifff/test-ci/assignees{/user}","branches_url":"https://api.github.com/repos/crifff/test-ci/branches{/branch}","tags_url":"https://api.github.com/repos/crifff/test-ci/tags","blobs_url":"https://api.github.com/repos/crifff/test-ci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crifff/test-ci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crifff/test-ci/git/refs{/sha}","trees_url":"https://api.github.com/repos/crifff/test-ci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crifff/test-ci/statuses/{sha}","languages_url":"https://api.github.com/repos/crifff/test-ci/languages","stargazers_url":"https://api.github.com/repos/crifff/test-ci/stargazers","contributors_url":"https://api.github.com/repos/crifff/test-ci/contributors","subscribers_url":"https://api.github.com/repos/crifff/test-ci/subscribers","subscription_url":"https://api.github.com/repos/crifff/test-ci/subscription","commits_url":"https://api.github.com/repos/crifff/test-ci/commits{/sha}","git_commits_url":"https://api.github.com/repos/crifff/test-ci/git/commits{/sha}","comments_url":"https://api.github.com/repos/crifff/test-ci/comments{/number}","issue_comment_url":"https://api.github.com/repos/crifff/test-ci/issues/comments{/number}","contents_url":"https://api.github.com/repos/crifff/test-ci/contents/{+path}","compare_url":"https://api.github.com/repos/crifff/test-ci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crifff/test-ci/merges","archive_url":"https://api.github.com/repos/crifff/test-ci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crifff/test-ci/downloads","issues_url":"https://api.github.com/repos/crifff/test-ci/issues{/number}","pulls_url":"https://api.github.com/repos/crifff/test-ci/pulls{/number}","milestones_url":"https://api.github.com/repos/crifff/test-ci/milestones{/number}","notifications_url":"https://api.github.com/repos/crifff/test-ci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crifff/test-ci/labels{/name}","releases_url":"https://api.github.com/repos/crifff/test-ci/releases{/id}","deployments_url":"https://api.github.com/repos/crifff/test-ci/deployments","created_at":"2016-12-08T03:06:27Z","updated_at":"2016-12-08T03:12:27Z","pushed_at":"2016-12-22T03:27:44Z","git_url":"git://github.com/crifff/test-ci.git","ssh_url":"git@github.com:crifff/test-ci.git","clone_url":"https://github.com/crifff/test-ci.git","svn_url":"https://github.com/crifff/test-ci","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"crifff:master","ref":"master","sha":"bcb2084e0bac9c115314aca5af4dd79d52d411a0","user":{"login":"crifff","id":953773,"avatar_url":"https://avatars.githubusercontent.com/u/953773?v=3","gravatar_id":"","url":"https://api.github.com/users/crifff","html_url":"https://github.com/crifff","followers_url":"https://api.github.com/users/crifff/followers","following_url":"https://api.github.com/users/crifff/following{/other_user}","gists_url":"https://api.github.com/users/crifff/gists{/gist_id}","starred_url":"https://api.github.com/users/crifff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crifff/subscriptions","organizations_url":"https://api.github.com/users/crifff/orgs","repos_url":"https://api.github.com/users/crifff/repos","events_url":"https://api.github.com/users/crifff/events{/privacy}","received_events_url":"https://api.github.com/users/crifff/received_events","type":"User","site_admin":false},"repo":{"id":75897831,"name":"test-ci","full_name":"crifff/test-ci","owner":{"login":"crifff","id":953773,"avatar_url":"https://avatars.githubusercontent.com/u/953773?v=3","gravatar_id":"","url":"https://api.github.com/users/crifff","html_url":"https://github.com/crifff","followers_url":"https://api.github.com/users/crifff/followers","following_url":"https://api.github.com/users/crifff/following{/other_user}","gists_url":"https://api.github.com/users/crifff/gists{/gist_id}","starred_url":"https://api.github.com/users/crifff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crifff/subscriptions","organizations_url":"https://api.github.com/users/crifff/orgs","repos_url":"https://api.github.com/users/crifff/repos","events_url":"https://api.github.com/users/crifff/events{/privacy}","received_events_url":"https://api.github.com/users/crifff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crifff/test-ci","description":null,"fork":false,"url":"https://api.github.com/repos/crifff/test-ci","forks_url":"https://api.github.com/repos/crifff/test-ci/forks","keys_url":"https://api.github.com/repos/crifff/test-ci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crifff/test-ci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crifff/test-ci/teams","hooks_url":"https://api.github.com/repos/crifff/test-ci/hooks","issue_events_url":"https://api.github.com/repos/crifff/test-ci/issues/events{/number}","events_url":"https://api.github.com/repos/crifff/test-ci/events","assignees_url":"https://api.github.com/repos/crifff/test-ci/assignees{/user}","branches_url":"https://api.github.com/repos/crifff/test-ci/branches{/branch}","tags_url":"https://api.github.com/repos/crifff/test-ci/tags","blobs_url":"https://api.github.com/repos/crifff/test-ci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crifff/test-ci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crifff/test-ci/git/refs{/sha}","trees_url":"https://api.github.com/repos/crifff/test-ci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crifff/test-ci/statuses/{sha}","languages_url":"https://api.github.com/repos/crifff/test-ci/languages","stargazers_url":"https://api.github.com/repos/crifff/test-ci/stargazers","contributors_url":"https://api.github.com/repos/crifff/test-ci/contributors","subscribers_url":"https://api.github.com/repos/crifff/test-ci/subscribers","subscription_url":"https://api.github.com/repos/crifff/test-ci/subscription","commits_url":"https://api.github.com/repos/crifff/test-ci/commits{/sha}","git_commits_url":"https://api.github.com/repos/crifff/test-ci/git/commits{/sha}","comments_url":"https://api.github.com/repos/crifff/test-ci/comments{/number}","issue_comment_url":"https://api.github.com/repos/crifff/test-ci/issues/comments{/number}","contents_url":"https://api.github.com/repos/crifff/test-ci/contents/{+path}","compare_url":"https://api.github.com/repos/crifff/test-ci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crifff/test-ci/merges","archive_url":"https://api.github.com/repos/crifff/test-ci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crifff/test-ci/downloads","issues_url":"https://api.github.com/repos/crifff/test-ci/issues{/number}","pulls_url":"https://api.github.com/repos/crifff/test-ci/pulls{/number}","milestones_url":"https://api.github.com/repos/crifff/test-ci/milestones{/number}","notifications_url":"https://api.github.com/repos/crifff/test-ci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crifff/test-ci/labels{/name}","releases_url":"https://api.github.com/repos/crifff/test-ci/releases{/id}","deployments_url":"https://api.github.com/repos/crifff/test-ci/deployments","created_at":"2016-12-08T03:06:27Z","updated_at":"2016-12-08T03:12:27Z","pushed_at":"2016-12-22T03:27:44Z","git_url":"git://github.com/crifff/test-ci.git","ssh_url":"git@github.com:crifff/test-ci.git","clone_url":"https://github.com/crifff/test-ci.git","svn_url":"https://github.com/crifff/test-ci","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crifff/test-ci/pulls/5"},"html":{"href":"https://github.com/crifff/test-ci/pull/5"},"issue":{"href":"https://api.github.com/repos/crifff/test-ci/issues/5"},"comments":{"href":"https://api.github.com/repos/crifff/test-ci/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/crifff/test-ci/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/crifff/test-ci/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crifff/test-ci/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/crifff/test-ci/statuses/17ee09045b7e6899c43ec71074fbe18124c1fede"}}}}
{"actor":{"display_login":"crifff"}}