{"action":"created","comment":{"url":"https://api.github.com/repos/enb-make/enb/pulls/comments/34984331","id":34984331,"diff_hunk":"@@ -26,7 +26,7 @@ var styles = {\n     'bgDefault': ['\\033[49m', '\\033[49m']\n };\n \n-var enabled = !process.env.NOCOLOR && tty.isatty(1) && tty.isatty(2);\n+var enabled = process.env.COLOR || (!process.env.NOCOLOR && tty.isatty(1) && tty.isatty(2));","path":"lib/ui/colorize.js","position":5,"original_position":5,"commit_id":"c4978438a69343aae6e145fc5bd3af71438d51a2","original_commit_id":"c4978438a69343aae6e145fc5bd3af71438d51a2","user":{"login":"SwinX","id":854899,"avatar_url":"https://avatars.githubusercontent.com/u/854899?v=3","gravatar_id":"","url":"https://api.github.com/users/SwinX","html_url":"https://github.com/SwinX","followers_url":"https://api.github.com/users/SwinX/followers","following_url":"https://api.github.com/users/SwinX/following{/other_user}","gists_url":"https://api.github.com/users/SwinX/gists{/gist_id}","starred_url":"https://api.github.com/users/SwinX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwinX/subscriptions","organizations_url":"https://api.github.com/users/SwinX/orgs","repos_url":"https://api.github.com/users/SwinX/repos","events_url":"https://api.github.com/users/SwinX/events{/privacy}","received_events_url":"https://api.github.com/users/SwinX/received_events","type":"User","site_admin":false},"body":"Seems in this line checks about file descriptors point to TTY are being ignored if `process.env.COLOR` is being set. This may lead to case when color output may occur, for example, in log file. Looks like this is not a correct behavior, output anywhere expect TTY has to be clean, without colors.","created_at":"2015-07-20T11:00:38Z","updated_at":"2015-07-20T11:00:38Z","html_url":"https://github.com/enb-make/enb/pull/271#discussion_r34984331","pull_request_url":"https://api.github.com/repos/enb-make/enb/pulls/271","_links":{"self":{"href":"https://api.github.com/repos/enb-make/enb/pulls/comments/34984331"},"html":{"href":"https://github.com/enb-make/enb/pull/271#discussion_r34984331"},"pull_request":{"href":"https://api.github.com/repos/enb-make/enb/pulls/271"}}},"pull_request":{"url":"https://api.github.com/repos/enb-make/enb/pulls/271","id":40312458,"html_url":"https://github.com/enb-make/enb/pull/271","diff_url":"https://github.com/enb-make/enb/pull/271.diff","patch_url":"https://github.com/enb-make/enb/pull/271.patch","issue_url":"https://api.github.com/repos/enb-make/enb/issues/271","number":271,"state":"open","locked":false,"title":"Ability to force color","user":{"login":"sbmaxx","id":381830,"avatar_url":"https://avatars.githubusercontent.com/u/381830?v=3","gravatar_id":"","url":"https://api.github.com/users/sbmaxx","html_url":"https://github.com/sbmaxx","followers_url":"https://api.github.com/users/sbmaxx/followers","following_url":"https://api.github.com/users/sbmaxx/following{/other_user}","gists_url":"https://api.github.com/users/sbmaxx/gists{/gist_id}","starred_url":"https://api.github.com/users/sbmaxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbmaxx/subscriptions","organizations_url":"https://api.github.com/users/sbmaxx/orgs","repos_url":"https://api.github.com/users/sbmaxx/repos","events_url":"https://api.github.com/users/sbmaxx/events{/privacy}","received_events_url":"https://api.github.com/users/sbmaxx/received_events","type":"User","site_admin":false},"body":"We may need it if running via `shelljs` for example.","created_at":"2015-07-19T18:15:02Z","updated_at":"2015-07-20T11:00:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4ace8bc08a6c2746b76ca16e9180de1b27564efe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/enb-make/enb/pulls/271/commits","review_comments_url":"https://api.github.com/repos/enb-make/enb/pulls/271/comments","review_comment_url":"https://api.github.com/repos/enb-make/enb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/enb-make/enb/issues/271/comments","statuses_url":"https://api.github.com/repos/enb-make/enb/statuses/c4978438a69343aae6e145fc5bd3af71438d51a2","head":{"label":"sbmaxx:forceColorLogs","ref":"forceColorLogs","sha":"c4978438a69343aae6e145fc5bd3af71438d51a2","user":{"login":"sbmaxx","id":381830,"avatar_url":"https://avatars.githubusercontent.com/u/381830?v=3","gravatar_id":"","url":"https://api.github.com/users/sbmaxx","html_url":"https://github.com/sbmaxx","followers_url":"https://api.github.com/users/sbmaxx/followers","following_url":"https://api.github.com/users/sbmaxx/following{/other_user}","gists_url":"https://api.github.com/users/sbmaxx/gists{/gist_id}","starred_url":"https://api.github.com/users/sbmaxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbmaxx/subscriptions","organizations_url":"https://api.github.com/users/sbmaxx/orgs","repos_url":"https://api.github.com/users/sbmaxx/repos","events_url":"https://api.github.com/users/sbmaxx/events{/privacy}","received_events_url":"https://api.github.com/users/sbmaxx/received_events","type":"User","site_admin":false},"repo":{"id":39333719,"name":"enb","full_name":"sbmaxx/enb","owner":{"login":"sbmaxx","id":381830,"avatar_url":"https://avatars.githubusercontent.com/u/381830?v=3","gravatar_id":"","url":"https://api.github.com/users/sbmaxx","html_url":"https://github.com/sbmaxx","followers_url":"https://api.github.com/users/sbmaxx/followers","following_url":"https://api.github.com/users/sbmaxx/following{/other_user}","gists_url":"https://api.github.com/users/sbmaxx/gists{/gist_id}","starred_url":"https://api.github.com/users/sbmaxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbmaxx/subscriptions","organizations_url":"https://api.github.com/users/sbmaxx/orgs","repos_url":"https://api.github.com/users/sbmaxx/repos","events_url":"https://api.github.com/users/sbmaxx/events{/privacy}","received_events_url":"https://api.github.com/users/sbmaxx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sbmaxx/enb","description":"Faster BEM/BEViS assembler","fork":true,"url":"https://api.github.com/repos/sbmaxx/enb","forks_url":"https://api.github.com/repos/sbmaxx/enb/forks","keys_url":"https://api.github.com/repos/sbmaxx/enb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sbmaxx/enb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sbmaxx/enb/teams","hooks_url":"https://api.github.com/repos/sbmaxx/enb/hooks","issue_events_url":"https://api.github.com/repos/sbmaxx/enb/issues/events{/number}","events_url":"https://api.github.com/repos/sbmaxx/enb/events","assignees_url":"https://api.github.com/repos/sbmaxx/enb/assignees{/user}","branches_url":"https://api.github.com/repos/sbmaxx/enb/branches{/branch}","tags_url":"https://api.github.com/repos/sbmaxx/enb/tags","blobs_url":"https://api.github.com/repos/sbmaxx/enb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sbmaxx/enb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sbmaxx/enb/git/refs{/sha}","trees_url":"https://api.github.com/repos/sbmaxx/enb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sbmaxx/enb/statuses/{sha}","languages_url":"https://api.github.com/repos/sbmaxx/enb/languages","stargazers_url":"https://api.github.com/repos/sbmaxx/enb/stargazers","contributors_url":"https://api.github.com/repos/sbmaxx/enb/contributors","subscribers_url":"https://api.github.com/repos/sbmaxx/enb/subscribers","subscription_url":"https://api.github.com/repos/sbmaxx/enb/subscription","commits_url":"https://api.github.com/repos/sbmaxx/enb/commits{/sha}","git_commits_url":"https://api.github.com/repos/sbmaxx/enb/git/commits{/sha}","comments_url":"https://api.github.com/repos/sbmaxx/enb/comments{/number}","issue_comment_url":"https://api.github.com/repos/sbmaxx/enb/issues/comments{/number}","contents_url":"https://api.github.com/repos/sbmaxx/enb/contents/{+path}","compare_url":"https://api.github.com/repos/sbmaxx/enb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sbmaxx/enb/merges","archive_url":"https://api.github.com/repos/sbmaxx/enb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sbmaxx/enb/downloads","issues_url":"https://api.github.com/repos/sbmaxx/enb/issues{/number}","pulls_url":"https://api.github.com/repos/sbmaxx/enb/pulls{/number}","milestones_url":"https://api.github.com/repos/sbmaxx/enb/milestones{/number}","notifications_url":"https://api.github.com/repos/sbmaxx/enb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sbmaxx/enb/labels{/name}","releases_url":"https://api.github.com/repos/sbmaxx/enb/releases{/id}","created_at":"2015-07-19T12:55:29Z","updated_at":"2015-07-19T12:55:30Z","pushed_at":"2015-07-19T12:56:40Z","git_url":"git://github.com/sbmaxx/enb.git","ssh_url":"git@github.com:sbmaxx/enb.git","clone_url":"https://github.com/sbmaxx/enb.git","svn_url":"https://github.com/sbmaxx/enb","homepage":"http://enb-make.info","size":3267,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"enb-make:master","ref":"master","sha":"3e705e0226fc068f75b67ddb0dfbb13e26e5db93","user":{"login":"enb-make","id":4427117,"avatar_url":"https://avatars.githubusercontent.com/u/4427117?v=3","gravatar_id":"","url":"https://api.github.com/users/enb-make","html_url":"https://github.com/enb-make","followers_url":"https://api.github.com/users/enb-make/followers","following_url":"https://api.github.com/users/enb-make/following{/other_user}","gists_url":"https://api.github.com/users/enb-make/gists{/gist_id}","starred_url":"https://api.github.com/users/enb-make/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enb-make/subscriptions","organizations_url":"https://api.github.com/users/enb-make/orgs","repos_url":"https://api.github.com/users/enb-make/repos","events_url":"https://api.github.com/users/enb-make/events{/privacy}","received_events_url":"https://api.github.com/users/enb-make/received_events","type":"Organization","site_admin":false},"repo":{"id":10054361,"name":"enb","full_name":"enb-make/enb","owner":{"login":"enb-make","id":4427117,"avatar_url":"https://avatars.githubusercontent.com/u/4427117?v=3","gravatar_id":"","url":"https://api.github.com/users/enb-make","html_url":"https://github.com/enb-make","followers_url":"https://api.github.com/users/enb-make/followers","following_url":"https://api.github.com/users/enb-make/following{/other_user}","gists_url":"https://api.github.com/users/enb-make/gists{/gist_id}","starred_url":"https://api.github.com/users/enb-make/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enb-make/subscriptions","organizations_url":"https://api.github.com/users/enb-make/orgs","repos_url":"https://api.github.com/users/enb-make/repos","events_url":"https://api.github.com/users/enb-make/events{/privacy}","received_events_url":"https://api.github.com/users/enb-make/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/enb-make/enb","description":"Faster BEM/BEViS assembler","fork":false,"url":"https://api.github.com/repos/enb-make/enb","forks_url":"https://api.github.com/repos/enb-make/enb/forks","keys_url":"https://api.github.com/repos/enb-make/enb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enb-make/enb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enb-make/enb/teams","hooks_url":"https://api.github.com/repos/enb-make/enb/hooks","issue_events_url":"https://api.github.com/repos/enb-make/enb/issues/events{/number}","events_url":"https://api.github.com/repos/enb-make/enb/events","assignees_url":"https://api.github.com/repos/enb-make/enb/assignees{/user}","branches_url":"https://api.github.com/repos/enb-make/enb/branches{/branch}","tags_url":"https://api.github.com/repos/enb-make/enb/tags","blobs_url":"https://api.github.com/repos/enb-make/enb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enb-make/enb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enb-make/enb/git/refs{/sha}","trees_url":"https://api.github.com/repos/enb-make/enb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enb-make/enb/statuses/{sha}","languages_url":"https://api.github.com/repos/enb-make/enb/languages","stargazers_url":"https://api.github.com/repos/enb-make/enb/stargazers","contributors_url":"https://api.github.com/repos/enb-make/enb/contributors","subscribers_url":"https://api.github.com/repos/enb-make/enb/subscribers","subscription_url":"https://api.github.com/repos/enb-make/enb/subscription","commits_url":"https://api.github.com/repos/enb-make/enb/commits{/sha}","git_commits_url":"https://api.github.com/repos/enb-make/enb/git/commits{/sha}","comments_url":"https://api.github.com/repos/enb-make/enb/comments{/number}","issue_comment_url":"https://api.github.com/repos/enb-make/enb/issues/comments{/number}","contents_url":"https://api.github.com/repos/enb-make/enb/contents/{+path}","compare_url":"https://api.github.com/repos/enb-make/enb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enb-make/enb/merges","archive_url":"https://api.github.com/repos/enb-make/enb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enb-make/enb/downloads","issues_url":"https://api.github.com/repos/enb-make/enb/issues{/number}","pulls_url":"https://api.github.com/repos/enb-make/enb/pulls{/number}","milestones_url":"https://api.github.com/repos/enb-make/enb/milestones{/number}","notifications_url":"https://api.github.com/repos/enb-make/enb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enb-make/enb/labels{/name}","releases_url":"https://api.github.com/repos/enb-make/enb/releases{/id}","created_at":"2013-05-14T12:15:32Z","updated_at":"2015-07-16T20:27:10Z","pushed_at":"2015-07-19T18:15:03Z","git_url":"git://github.com/enb-make/enb.git","ssh_url":"git@github.com:enb-make/enb.git","clone_url":"https://github.com/enb-make/enb.git","svn_url":"https://github.com/enb-make/enb","homepage":"http://enb-make.info","size":3267,"stargazers_count":88,"watchers_count":88,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":45,"mirror_url":null,"open_issues_count":46,"forks":45,"open_issues":46,"watchers":88,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/enb-make/enb/pulls/271"},"html":{"href":"https://github.com/enb-make/enb/pull/271"},"issue":{"href":"https://api.github.com/repos/enb-make/enb/issues/271"},"comments":{"href":"https://api.github.com/repos/enb-make/enb/issues/271/comments"},"review_comments":{"href":"https://api.github.com/repos/enb-make/enb/pulls/271/comments"},"review_comment":{"href":"https://api.github.com/repos/enb-make/enb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/enb-make/enb/pulls/271/commits"},"statuses":{"href":"https://api.github.com/repos/enb-make/enb/statuses/c4978438a69343aae6e145fc5bd3af71438d51a2"}}}}