{"action":"created","issue":{"url":"https://api.github.com/repos/google/arc-xcode-test-engine/issues/4","repository_url":"https://api.github.com/repos/google/arc-xcode-test-engine","labels_url":"https://api.github.com/repos/google/arc-xcode-test-engine/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/google/arc-xcode-test-engine/issues/4/comments","events_url":"https://api.github.com/repos/google/arc-xcode-test-engine/issues/4/events","html_url":"https://github.com/google/arc-xcode-test-engine/pull/4","id":163231995,"number":4,"title":"Adding a function with a label \"error\" will cause the build to always fail","user":{"login":"KevM","id":1565,"avatar_url":"https://avatars.githubusercontent.com/u/1565?v=3","gravatar_id":"","url":"https://api.github.com/users/KevM","html_url":"https://github.com/KevM","followers_url":"https://api.github.com/users/KevM/followers","following_url":"https://api.github.com/users/KevM/following{/other_user}","gists_url":"https://api.github.com/users/KevM/gists{/gist_id}","starred_url":"https://api.github.com/users/KevM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevM/subscriptions","organizations_url":"https://api.github.com/users/KevM/orgs","repos_url":"https://api.github.com/users/KevM/repos","events_url":"https://api.github.com/users/KevM/events{/privacy}","received_events_url":"https://api.github.com/users/KevM/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-30T18:24:05Z","updated_at":"2016-06-30T18:31:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/google/arc-xcode-test-engine/pulls/4","html_url":"https://github.com/google/arc-xcode-test-engine/pull/4","diff_url":"https://github.com/google/arc-xcode-test-engine/pull/4.diff","patch_url":"https://github.com/google/arc-xcode-test-engine/pull/4.patch"},"body":"We found that our build suddenly started failing every time. After looking at the results parser I realized that it looks for \"error:\" and fails the build if it sees this. Thus this function added to our project caused the build to fail. I believe this was due to code coverage analysis which emits each line of code to the log.\r\n\r\n```swift\r\n   class func error(error: NSError?) {\r\n        guard let error = error else { return }\r\n   // ...\r\n  }\r\n```\r\n\r\nA fix for this would be to ensure the match for `:error` is being done within the context of a test suite. I stink at the PHP so please let me know if I could be doing this in a better way."},"comment":{"url":"https://api.github.com/repos/google/arc-xcode-test-engine/issues/comments/229748225","html_url":"https://github.com/google/arc-xcode-test-engine/pull/4#issuecomment-229748225","issue_url":"https://api.github.com/repos/google/arc-xcode-test-engine/issues/4","id":229748225,"user":{"login":"KevM","id":1565,"avatar_url":"https://avatars.githubusercontent.com/u/1565?v=3","gravatar_id":"","url":"https://api.github.com/users/KevM","html_url":"https://github.com/KevM","followers_url":"https://api.github.com/users/KevM/followers","following_url":"https://api.github.com/users/KevM/following{/other_user}","gists_url":"https://api.github.com/users/KevM/gists{/gist_id}","starred_url":"https://api.github.com/users/KevM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevM/subscriptions","organizations_url":"https://api.github.com/users/KevM/orgs","repos_url":"https://api.github.com/users/KevM/repos","events_url":"https://api.github.com/users/KevM/events{/privacy}","received_events_url":"https://api.github.com/users/KevM/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T18:31:15Z","updated_at":"2016-06-30T18:31:15Z","body":"👍 I signed it as a result of #5. "}}
{"actor":{"display_login":"KevM"}}