{"action":"created","issue":{"url":"https://api.github.com/repos/vimeo/psalm/issues/1754","repository_url":"https://api.github.com/repos/vimeo/psalm","labels_url":"https://api.github.com/repos/vimeo/psalm/issues/1754/labels{/name}","comments_url":"https://api.github.com/repos/vimeo/psalm/issues/1754/comments","events_url":"https://api.github.com/repos/vimeo/psalm/issues/1754/events","html_url":"https://github.com/vimeo/psalm/issues/1754","id":453553523,"node_id":"MDU6SXNzdWU0NTM1NTM1MjM=","number":1754,"title":"Don't output colours by default if output is not a terminal","user":{"login":"bdsl","id":159481,"node_id":"MDQ6VXNlcjE1OTQ4MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/159481?v=4","gravatar_id":"","url":"https://api.github.com/users/bdsl","html_url":"https://github.com/bdsl","followers_url":"https://api.github.com/users/bdsl/followers","following_url":"https://api.github.com/users/bdsl/following{/other_user}","gists_url":"https://api.github.com/users/bdsl/gists{/gist_id}","starred_url":"https://api.github.com/users/bdsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdsl/subscriptions","organizations_url":"https://api.github.com/users/bdsl/orgs","repos_url":"https://api.github.com/users/bdsl/repos","events_url":"https://api.github.com/users/bdsl/events{/privacy}","received_events_url":"https://api.github.com/users/bdsl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-06-07T14:50:30Z","updated_at":"2019-06-07T22:31:40Z","closed_at":"2019-06-07T22:00:19Z","author_association":"CONTRIBUTOR","body":"I use psalm with less, and to workaround this issue I need to run `./bin/psalm | less -R` rather than `./bin/psalm | less` . If I don't include the `-R` I get hard to read output including all the colour codes.\r\n\r\nI think the fix would be to add --color and --no-color options, with the default depending on the value returned by [`stream_isatty(STDOUT)`](http://docs.php.net/manual/en/function.stream-isatty.php)."},"comment":{"url":"https://api.github.com/repos/vimeo/psalm/issues/comments/500059350","html_url":"https://github.com/vimeo/psalm/issues/1754#issuecomment-500059350","issue_url":"https://api.github.com/repos/vimeo/psalm/issues/1754","id":500059350,"node_id":"MDEyOklzc3VlQ29tbWVudDUwMDA1OTM1MA==","user":{"login":"bdsl","id":159481,"node_id":"MDQ6VXNlcjE1OTQ4MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/159481?v=4","gravatar_id":"","url":"https://api.github.com/users/bdsl","html_url":"https://github.com/bdsl","followers_url":"https://api.github.com/users/bdsl/followers","following_url":"https://api.github.com/users/bdsl/following{/other_user}","gists_url":"https://api.github.com/users/bdsl/gists{/gist_id}","starred_url":"https://api.github.com/users/bdsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdsl/subscriptions","organizations_url":"https://api.github.com/users/bdsl/orgs","repos_url":"https://api.github.com/users/bdsl/repos","events_url":"https://api.github.com/users/bdsl/events{/privacy}","received_events_url":"https://api.github.com/users/bdsl/received_events","type":"User","site_admin":false},"created_at":"2019-06-07T22:31:40Z","updated_at":"2019-06-07T22:31:40Z","author_association":"CONTRIBUTOR","body":"Ok, that should work. @muglug , while you're here can you take a look at #1758 ? Thank you. "}}
{"actor":{"display_login":"bdsl"}}