{"action":"created","issue":{"url":"https://api.github.com/repos/spotify/apollo/issues/187","repository_url":"https://api.github.com/repos/spotify/apollo","labels_url":"https://api.github.com/repos/spotify/apollo/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/spotify/apollo/issues/187/comments","events_url":"https://api.github.com/repos/spotify/apollo/issues/187/events","html_url":"https://github.com/spotify/apollo/pull/187","id":196884834,"number":187,"title":"Make comparing status more convenient.","user":{"login":"rydenius","id":2294247,"avatar_url":"https://avatars.githubusercontent.com/u/2294247?v=3","gravatar_id":"","url":"https://api.github.com/users/rydenius","html_url":"https://github.com/rydenius","followers_url":"https://api.github.com/users/rydenius/followers","following_url":"https://api.github.com/users/rydenius/following{/other_user}","gists_url":"https://api.github.com/users/rydenius/gists{/gist_id}","starred_url":"https://api.github.com/users/rydenius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rydenius/subscriptions","organizations_url":"https://api.github.com/users/rydenius/orgs","repos_url":"https://api.github.com/users/rydenius/repos","events_url":"https://api.github.com/users/rydenius/events{/privacy}","received_events_url":"https://api.github.com/users/rydenius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-21T09:30:38Z","updated_at":"2016-12-21T09:35:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/spotify/apollo/pulls/187","html_url":"https://github.com/spotify/apollo/pull/187","diff_url":"https://github.com/spotify/apollo/pull/187.diff","patch_url":"https://github.com/spotify/apollo/pull/187.patch"},"body":"More than once I have seen code like this fail:\r\n```\r\nif (Status.OK == response.status()) {\r\n```\r\nor\r\n```\r\nif (Status.OK.equals(response.status()) {\r\n```\r\nbecause the status of the response has a different reason phrase. The current solution would be to use\r\n```\r\nif (Status.OK.code() == response.status().code()) {\r\n```\r\nThis small patch would simplify this check and also signal to developers that regular equals method might not be what you want to use."},"comment":{"url":"https://api.github.com/repos/spotify/apollo/issues/comments/268477768","html_url":"https://github.com/spotify/apollo/pull/187#issuecomment-268477768","issue_url":"https://api.github.com/repos/spotify/apollo/issues/187","id":268477768,"user":{"login":"martina-if","id":736631,"avatar_url":"https://avatars.githubusercontent.com/u/736631?v=3","gravatar_id":"","url":"https://api.github.com/users/martina-if","html_url":"https://github.com/martina-if","followers_url":"https://api.github.com/users/martina-if/followers","following_url":"https://api.github.com/users/martina-if/following{/other_user}","gists_url":"https://api.github.com/users/martina-if/gists{/gist_id}","starred_url":"https://api.github.com/users/martina-if/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martina-if/subscriptions","organizations_url":"https://api.github.com/users/martina-if/orgs","repos_url":"https://api.github.com/users/martina-if/repos","events_url":"https://api.github.com/users/martina-if/events{/privacy}","received_events_url":"https://api.github.com/users/martina-if/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T09:35:26Z","updated_at":"2016-12-21T09:35:26Z","body":":+1: "}}
{"actor":{"display_login":"martina-if"}}