{"action":"closed","number":17,"pull_request":{"url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/pulls/17","id":214093773,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0MDkzNzcz","html_url":"https://github.com/snyk/snyk-sbt-plugin/pull/17","diff_url":"https://github.com/snyk/snyk-sbt-plugin/pull/17.diff","patch_url":"https://github.com/snyk/snyk-sbt-plugin/pull/17.patch","issue_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/issues/17","number":17,"state":"closed","locked":false,"title":"fix: throw proper error on failing sbt execution","user":{"login":"adrukh","id":1489979,"node_id":"MDQ6VXNlcjE0ODk5Nzk=","avatar_url":"https://avatars0.githubusercontent.com/u/1489979?v=4","gravatar_id":"","url":"https://api.github.com/users/adrukh","html_url":"https://github.com/adrukh","followers_url":"https://api.github.com/users/adrukh/followers","following_url":"https://api.github.com/users/adrukh/following{/other_user}","gists_url":"https://api.github.com/users/adrukh/gists{/gist_id}","starred_url":"https://api.github.com/users/adrukh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrukh/subscriptions","organizations_url":"https://api.github.com/users/adrukh/orgs","repos_url":"https://api.github.com/users/adrukh/repos","events_url":"https://api.github.com/users/adrukh/events{/privacy}","received_events_url":"https://api.github.com/users/adrukh/received_events","type":"User","site_admin":false},"body":"- [x] Ready for review\r\n- [x] Follows CONTRIBUTING rules\r\n- [ ] Reviewed by Snyk internal team\r\n\r\n#### What does this PR do?\r\n\r\nWhen `sbt` execution ends with an error, the plugin used to reject with a string containing the stdout or stderr of the `sbt` process. This doesn't work well with the CLI, which expects proper `Error` objects on plugin failure. Now fixed!","created_at":"2018-09-08T12:45:59Z","updated_at":"2018-09-09T06:55:27Z","closed_at":"2018-09-09T06:55:27Z","merged_at":"2018-09-09T06:55:27Z","merge_commit_sha":"231a29a4ffb6c21a25c9fc1919973cec908aa4ee","assignee":{"login":"adrukh","id":1489979,"node_id":"MDQ6VXNlcjE0ODk5Nzk=","avatar_url":"https://avatars0.githubusercontent.com/u/1489979?v=4","gravatar_id":"","url":"https://api.github.com/users/adrukh","html_url":"https://github.com/adrukh","followers_url":"https://api.github.com/users/adrukh/followers","following_url":"https://api.github.com/users/adrukh/following{/other_user}","gists_url":"https://api.github.com/users/adrukh/gists{/gist_id}","starred_url":"https://api.github.com/users/adrukh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrukh/subscriptions","organizations_url":"https://api.github.com/users/adrukh/orgs","repos_url":"https://api.github.com/users/adrukh/repos","events_url":"https://api.github.com/users/adrukh/events{/privacy}","received_events_url":"https://api.github.com/users/adrukh/received_events","type":"User","site_admin":false},"assignees":[{"login":"adrukh","id":1489979,"node_id":"MDQ6VXNlcjE0ODk5Nzk=","avatar_url":"https://avatars0.githubusercontent.com/u/1489979?v=4","gravatar_id":"","url":"https://api.github.com/users/adrukh","html_url":"https://github.com/adrukh","followers_url":"https://api.github.com/users/adrukh/followers","following_url":"https://api.github.com/users/adrukh/following{/other_user}","gists_url":"https://api.github.com/users/adrukh/gists{/gist_id}","starred_url":"https://api.github.com/users/adrukh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrukh/subscriptions","organizations_url":"https://api.github.com/users/adrukh/orgs","repos_url":"https://api.github.com/users/adrukh/repos","events_url":"https://api.github.com/users/adrukh/events{/privacy}","received_events_url":"https://api.github.com/users/adrukh/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"lili2311","id":2911613,"node_id":"MDQ6VXNlcjI5MTE2MTM=","avatar_url":"https://avatars2.githubusercontent.com/u/2911613?v=4","gravatar_id":"","url":"https://api.github.com/users/lili2311","html_url":"https://github.com/lili2311","followers_url":"https://api.github.com/users/lili2311/followers","following_url":"https://api.github.com/users/lili2311/following{/other_user}","gists_url":"https://api.github.com/users/lili2311/gists{/gist_id}","starred_url":"https://api.github.com/users/lili2311/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lili2311/subscriptions","organizations_url":"https://api.github.com/users/lili2311/orgs","repos_url":"https://api.github.com/users/lili2311/repos","events_url":"https://api.github.com/users/lili2311/events{/privacy}","received_events_url":"https://api.github.com/users/lili2311/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/pulls/17/commits","review_comments_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/pulls/17/comments","review_comment_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/issues/17/comments","statuses_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/statuses/676bd140e04612bbf6a3c358ad929f5f2a8ea5a1","head":{"label":"snyk:fix/error-on-bad-sbt-run","ref":"fix/error-on-bad-sbt-run","sha":"676bd140e04612bbf6a3c358ad929f5f2a8ea5a1","user":{"login":"snyk","id":12959162,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTU5MTYy","avatar_url":"https://avatars1.githubusercontent.com/u/12959162?v=4","gravatar_id":"","url":"https://api.github.com/users/snyk","html_url":"https://github.com/snyk","followers_url":"https://api.github.com/users/snyk/followers","following_url":"https://api.github.com/users/snyk/following{/other_user}","gists_url":"https://api.github.com/users/snyk/gists{/gist_id}","starred_url":"https://api.github.com/users/snyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snyk/subscriptions","organizations_url":"https://api.github.com/users/snyk/orgs","repos_url":"https://api.github.com/users/snyk/repos","events_url":"https://api.github.com/users/snyk/events{/privacy}","received_events_url":"https://api.github.com/users/snyk/received_events","type":"Organization","site_admin":false},"repo":{"id":94868097,"node_id":"MDEwOlJlcG9zaXRvcnk5NDg2ODA5Nw==","name":"snyk-sbt-plugin","full_name":"snyk/snyk-sbt-plugin","owner":{"login":"snyk","id":12959162,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTU5MTYy","avatar_url":"https://avatars1.githubusercontent.com/u/12959162?v=4","gravatar_id":"","url":"https://api.github.com/users/snyk","html_url":"https://github.com/snyk","followers_url":"https://api.github.com/users/snyk/followers","following_url":"https://api.github.com/users/snyk/following{/other_user}","gists_url":"https://api.github.com/users/snyk/gists{/gist_id}","starred_url":"https://api.github.com/users/snyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snyk/subscriptions","organizations_url":"https://api.github.com/users/snyk/orgs","repos_url":"https://api.github.com/users/snyk/repos","events_url":"https://api.github.com/users/snyk/events{/privacy}","received_events_url":"https://api.github.com/users/snyk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/snyk/snyk-sbt-plugin","description":"Basic Snyk CLI plugin for SBT support","fork":false,"url":"https://api.github.com/repos/snyk/snyk-sbt-plugin","forks_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/forks","keys_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/teams","hooks_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/hooks","issue_events_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/events","assignees_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/tags","blobs_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/languages","stargazers_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/stargazers","contributors_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/contributors","subscribers_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/subscribers","subscription_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/subscription","commits_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/merges","archive_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/downloads","issues_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/labels{/name}","releases_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/deployments","created_at":"2017-06-20T08:31:15Z","updated_at":"2018-08-06T11:28:49Z","pushed_at":"2018-09-09T06:55:27Z","git_url":"git://github.com/snyk/snyk-sbt-plugin.git","ssh_url":"git@github.com:snyk/snyk-sbt-plugin.git","clone_url":"https://github.com/snyk/snyk-sbt-plugin.git","svn_url":"https://github.com/snyk/snyk-sbt-plugin","homepage":null,"size":144,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"snyk:master","ref":"master","sha":"8243aba9ec360dfb7f95ea403e9442034f6c8a3a","user":{"login":"snyk","id":12959162,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTU5MTYy","avatar_url":"https://avatars1.githubusercontent.com/u/12959162?v=4","gravatar_id":"","url":"https://api.github.com/users/snyk","html_url":"https://github.com/snyk","followers_url":"https://api.github.com/users/snyk/followers","following_url":"https://api.github.com/users/snyk/following{/other_user}","gists_url":"https://api.github.com/users/snyk/gists{/gist_id}","starred_url":"https://api.github.com/users/snyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snyk/subscriptions","organizations_url":"https://api.github.com/users/snyk/orgs","repos_url":"https://api.github.com/users/snyk/repos","events_url":"https://api.github.com/users/snyk/events{/privacy}","received_events_url":"https://api.github.com/users/snyk/received_events","type":"Organization","site_admin":false},"repo":{"id":94868097,"node_id":"MDEwOlJlcG9zaXRvcnk5NDg2ODA5Nw==","name":"snyk-sbt-plugin","full_name":"snyk/snyk-sbt-plugin","owner":{"login":"snyk","id":12959162,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTU5MTYy","avatar_url":"https://avatars1.githubusercontent.com/u/12959162?v=4","gravatar_id":"","url":"https://api.github.com/users/snyk","html_url":"https://github.com/snyk","followers_url":"https://api.github.com/users/snyk/followers","following_url":"https://api.github.com/users/snyk/following{/other_user}","gists_url":"https://api.github.com/users/snyk/gists{/gist_id}","starred_url":"https://api.github.com/users/snyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snyk/subscriptions","organizations_url":"https://api.github.com/users/snyk/orgs","repos_url":"https://api.github.com/users/snyk/repos","events_url":"https://api.github.com/users/snyk/events{/privacy}","received_events_url":"https://api.github.com/users/snyk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/snyk/snyk-sbt-plugin","description":"Basic Snyk CLI plugin for SBT support","fork":false,"url":"https://api.github.com/repos/snyk/snyk-sbt-plugin","forks_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/forks","keys_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/teams","hooks_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/hooks","issue_events_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/events","assignees_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/tags","blobs_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/languages","stargazers_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/stargazers","contributors_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/contributors","subscribers_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/subscribers","subscription_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/subscription","commits_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/merges","archive_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/downloads","issues_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/labels{/name}","releases_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/snyk/snyk-sbt-plugin/deployments","created_at":"2017-06-20T08:31:15Z","updated_at":"2018-08-06T11:28:49Z","pushed_at":"2018-09-09T06:55:27Z","git_url":"git://github.com/snyk/snyk-sbt-plugin.git","ssh_url":"git@github.com:snyk/snyk-sbt-plugin.git","clone_url":"https://github.com/snyk/snyk-sbt-plugin.git","svn_url":"https://github.com/snyk/snyk-sbt-plugin","homepage":null,"size":144,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/snyk/snyk-sbt-plugin/pulls/17"},"html":{"href":"https://github.com/snyk/snyk-sbt-plugin/pull/17"},"issue":{"href":"https://api.github.com/repos/snyk/snyk-sbt-plugin/issues/17"},"comments":{"href":"https://api.github.com/repos/snyk/snyk-sbt-plugin/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/snyk/snyk-sbt-plugin/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/snyk/snyk-sbt-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/snyk/snyk-sbt-plugin/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/snyk/snyk-sbt-plugin/statuses/676bd140e04612bbf6a3c358ad929f5f2a8ea5a1"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"ArturSnyk","id":42909729,"node_id":"MDQ6VXNlcjQyOTA5NzI5","avatar_url":"https://avatars3.githubusercontent.com/u/42909729?v=4","gravatar_id":"","url":"https://api.github.com/users/ArturSnyk","html_url":"https://github.com/ArturSnyk","followers_url":"https://api.github.com/users/ArturSnyk/followers","following_url":"https://api.github.com/users/ArturSnyk/following{/other_user}","gists_url":"https://api.github.com/users/ArturSnyk/gists{/gist_id}","starred_url":"https://api.github.com/users/ArturSnyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArturSnyk/subscriptions","organizations_url":"https://api.github.com/users/ArturSnyk/orgs","repos_url":"https://api.github.com/users/ArturSnyk/repos","events_url":"https://api.github.com/users/ArturSnyk/events{/privacy}","received_events_url":"https://api.github.com/users/ArturSnyk/received_events","type":"User","site_admin":false},"comments":0,"review_comments":4,"maintainer_can_modify":false,"commits":1,"additions":37,"deletions":45,"changed_files":7}}
{"actor":{"display_login":"ArturSnyk"}}