{"action":"closed","issue":{"url":"https://api.github.com/repos/consolidation/Robo/issues/790","repository_url":"https://api.github.com/repos/consolidation/Robo","labels_url":"https://api.github.com/repos/consolidation/Robo/issues/790/labels{/name}","comments_url":"https://api.github.com/repos/consolidation/Robo/issues/790/comments","events_url":"https://api.github.com/repos/consolidation/Robo/issues/790/events","html_url":"https://github.com/consolidation/Robo/issues/790","id":371554387,"node_id":"MDU6SXNzdWUzNzE1NTQzODc=","number":790,"title":"Question: How to fail a robo call ","user":{"login":"pkollitsch","id":83281,"node_id":"MDQ6VXNlcjgzMjgx","avatar_url":"https://avatars1.githubusercontent.com/u/83281?v=4","gravatar_id":"","url":"https://api.github.com/users/pkollitsch","html_url":"https://github.com/pkollitsch","followers_url":"https://api.github.com/users/pkollitsch/followers","following_url":"https://api.github.com/users/pkollitsch/following{/other_user}","gists_url":"https://api.github.com/users/pkollitsch/gists{/gist_id}","starred_url":"https://api.github.com/users/pkollitsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkollitsch/subscriptions","organizations_url":"https://api.github.com/users/pkollitsch/orgs","repos_url":"https://api.github.com/users/pkollitsch/repos","events_url":"https://api.github.com/users/pkollitsch/events{/privacy}","received_events_url":"https://api.github.com/users/pkollitsch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-18T14:19:40Z","updated_at":"2018-10-18T15:28:06Z","closed_at":"2018-10-18T15:28:06Z","author_association":"NONE","body":"### Steps to reproduce\r\nI am sure this is just a question and not a bug. I have the following function in my RoboFile (abbreviated, there are more execs in the stack):\r\n\r\n```    \r\npublic function qualitycontrol()\r\n    {\r\n        $this->taskExecStack()\r\n             ->stopOnFail()\r\n             ->exec(\r\n                 'phpcpd --progress app/api5/Boka10 --min-lines=2 --min-tokens=30'\r\n             )\r\n             ->run();\r\n        $this->phpstan(7);\r\n    }\r\n```\r\n### Expected behaviour\r\nI would expect the call to `robo qualitycontrol` to fail completely if phpcpd returns a fail code. \r\n\r\n### Actual behaviour\r\nphpcpd (taskExecStack) returns a fail code and stops executing following stack items and then `$this->phpstan(7)` is run.\r\n\r\n- Robo 1.3.1\r\n- PHP 7.2.10\r\n- Ubuntu 18.10 (yep, I did that ;)\r\n"}}
{"actor":{"display_login":"greg-1-anderson"}}