{"action":"opened","issue":{"url":"https://api.github.com/repos/travis-ci/travis.rb/issues/297","labels_url":"https://api.github.com/repos/travis-ci/travis.rb/issues/297/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis.rb/issues/297/comments","events_url":"https://api.github.com/repos/travis-ci/travis.rb/issues/297/events","html_url":"https://github.com/travis-ci/travis.rb/issues/297","id":80550820,"number":297,"title":"CLI exit status for not passed builds shouldn't be 0","user":{"login":"netmilk","id":79609,"avatar_url":"https://avatars.githubusercontent.com/u/79609?v=3","gravatar_id":"","url":"https://api.github.com/users/netmilk","html_url":"https://github.com/netmilk","followers_url":"https://api.github.com/users/netmilk/followers","following_url":"https://api.github.com/users/netmilk/following{/other_user}","gists_url":"https://api.github.com/users/netmilk/gists{/gist_id}","starred_url":"https://api.github.com/users/netmilk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netmilk/subscriptions","organizations_url":"https://api.github.com/users/netmilk/orgs","repos_url":"https://api.github.com/users/netmilk/repos","events_url":"https://api.github.com/users/netmilk/events{/privacy}","received_events_url":"https://api.github.com/users/netmilk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-25T14:16:11Z","updated_at":"2015-05-25T14:16:11Z","closed_at":null,"body":"I think that exit status for any other state for the `show` or `status` should be greater than zero. My motivation is to write a pre publish shell script for a `npm` package which will block release when master is not passing or not built yet and if the commit message of last build does not match commit message of the last local commit.\r\n\r\n\r\nBehavior now:\r\n```\r\nkolotoc:gavel.js netmilk$ travis status\r\necho#build #263 started\r\nkolotoc:gavel.js netmilk$ echo $?\r\n0\r\nkolotoc:gavel.js netmilk$ travis show\r\nBuild #263:  Bumped version\r\nState:         started\r\nType:          push\r\nBranch:        master\r\nCompare URL:   https://github.com/apiaryio/gavel.js/compare/b0800726a5aa...edcb17a9191c\r\nDuration:      none\r\nStarted:       2015-05-25 16:09:42\r\nFinished:      not yet\r\n\r\n#263.1 started:  32 sec         node_js: 0.8, os: linux\r\n#263.2 started:  32 sec         node_js: 0.1, os: linux\r\n#263.3 started:  24 sec         node_js: 0.12, os: linux\r\n#263.4 started:  33 sec         node_js: iojs, os: linux\r\nkolotoc:gavel.js netmilk$ echo $?\r\n0\r\n```"}}