{"action":"created","comment":{"url":"https://api.github.com/repos/guzzle/guzzle-services/pulls/comments/22767009","id":22767009,"diff_hunk":"@@ -0,0 +1,25 @@\n+<?php\n+/*\n+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+ * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+ *\n+ * This software consists of voluntary contributions made by many individuals\n+ * and is licensed under the MIT license.\n+ */\n+\n+namespace GuzzleHttp\\Tests\\Command\\Guzzle\\Asset\\Exception;\n+\n+use GuzzleHttp\\Command\\Exception\\CommandException;\n+\n+class OtherCustomCommandException extends CommandException\n+{\n+}","path":"tests/Asset/Exception/OtherCustomCommandException.php","position":25,"original_position":25,"commit_id":"706dc4e0711079f4ea2a36e8a0c911b4571f0651","original_commit_id":"706dc4e0711079f4ea2a36e8a0c911b4571f0651","user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"body":"all files must end in a single new line","created_at":"2015-01-11T14:11:50Z","updated_at":"2015-01-11T14:11:50Z","html_url":"https://github.com/guzzle/guzzle-services/pull/67#discussion_r22767009","pull_request_url":"https://api.github.com/repos/guzzle/guzzle-services/pulls/67","_links":{"self":{"href":"https://api.github.com/repos/guzzle/guzzle-services/pulls/comments/22767009"},"html":{"href":"https://github.com/guzzle/guzzle-services/pull/67#discussion_r22767009"},"pull_request":{"href":"https://api.github.com/repos/guzzle/guzzle-services/pulls/67"}}},"pull_request":{"url":"https://api.github.com/repos/guzzle/guzzle-services/pulls/67","id":27162952,"html_url":"https://github.com/guzzle/guzzle-services/pull/67","diff_url":"https://github.com/guzzle/guzzle-services/pull/67.diff","patch_url":"https://github.com/guzzle/guzzle-services/pull/67.patch","issue_url":"https://api.github.com/repos/guzzle/guzzle-services/issues/67","number":67,"state":"open","locked":false,"title":"Add tests","user":{"login":"bakura10","id":1198915,"avatar_url":"https://avatars.githubusercontent.com/u/1198915?v=3","gravatar_id":"","url":"https://api.github.com/users/bakura10","html_url":"https://github.com/bakura10","followers_url":"https://api.github.com/users/bakura10/followers","following_url":"https://api.github.com/users/bakura10/following{/other_user}","gists_url":"https://api.github.com/users/bakura10/gists{/gist_id}","starred_url":"https://api.github.com/users/bakura10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bakura10/subscriptions","organizations_url":"https://api.github.com/users/bakura10/orgs","repos_url":"https://api.github.com/users/bakura10/repos","events_url":"https://api.github.com/users/bakura10/events{/privacy}","received_events_url":"https://api.github.com/users/bakura10/received_events","type":"User","site_admin":false},"body":"Hi,\r\n\r\nThis PR fixes #66.\r\n\r\nIt adds an optional subscriber that reads the errorResponses array and throw exception.\r\n\r\nA few things:\r\n\r\n* You must register the listener in the client\r\n* Your exceptions must extend CommandException, because any other exception is wrapped automatically around a CommandException (which is still hell annoying).","created_at":"2015-01-11T13:52:57Z","updated_at":"2015-01-11T14:11:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"50afc003feeff30fd2e017e8c107d82c657f47fe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/guzzle/guzzle-services/pulls/67/commits","review_comments_url":"https://api.github.com/repos/guzzle/guzzle-services/pulls/67/comments","review_comment_url":"https://api.github.com/repos/guzzle/guzzle-services/pulls/comments/{number}","comments_url":"https://api.github.com/repos/guzzle/guzzle-services/issues/67/comments","statuses_url":"https://api.github.com/repos/guzzle/guzzle-services/statuses/706dc4e0711079f4ea2a36e8a0c911b4571f0651","head":{"label":"bakura10:exception-subscriber","ref":"exception-subscriber","sha":"706dc4e0711079f4ea2a36e8a0c911b4571f0651","user":{"login":"bakura10","id":1198915,"avatar_url":"https://avatars.githubusercontent.com/u/1198915?v=3","gravatar_id":"","url":"https://api.github.com/users/bakura10","html_url":"https://github.com/bakura10","followers_url":"https://api.github.com/users/bakura10/followers","following_url":"https://api.github.com/users/bakura10/following{/other_user}","gists_url":"https://api.github.com/users/bakura10/gists{/gist_id}","starred_url":"https://api.github.com/users/bakura10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bakura10/subscriptions","organizations_url":"https://api.github.com/users/bakura10/orgs","repos_url":"https://api.github.com/users/bakura10/repos","events_url":"https://api.github.com/users/bakura10/events{/privacy}","received_events_url":"https://api.github.com/users/bakura10/received_events","type":"User","site_admin":false},"repo":{"id":28708680,"name":"guzzle-services","full_name":"bakura10/guzzle-services","owner":{"login":"bakura10","id":1198915,"avatar_url":"https://avatars.githubusercontent.com/u/1198915?v=3","gravatar_id":"","url":"https://api.github.com/users/bakura10","html_url":"https://github.com/bakura10","followers_url":"https://api.github.com/users/bakura10/followers","following_url":"https://api.github.com/users/bakura10/following{/other_user}","gists_url":"https://api.github.com/users/bakura10/gists{/gist_id}","starred_url":"https://api.github.com/users/bakura10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bakura10/subscriptions","organizations_url":"https://api.github.com/users/bakura10/orgs","repos_url":"https://api.github.com/users/bakura10/repos","events_url":"https://api.github.com/users/bakura10/events{/privacy}","received_events_url":"https://api.github.com/users/bakura10/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bakura10/guzzle-services","description":"Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.","fork":true,"url":"https://api.github.com/repos/bakura10/guzzle-services","forks_url":"https://api.github.com/repos/bakura10/guzzle-services/forks","keys_url":"https://api.github.com/repos/bakura10/guzzle-services/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bakura10/guzzle-services/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bakura10/guzzle-services/teams","hooks_url":"https://api.github.com/repos/bakura10/guzzle-services/hooks","issue_events_url":"https://api.github.com/repos/bakura10/guzzle-services/issues/events{/number}","events_url":"https://api.github.com/repos/bakura10/guzzle-services/events","assignees_url":"https://api.github.com/repos/bakura10/guzzle-services/assignees{/user}","branches_url":"https://api.github.com/repos/bakura10/guzzle-services/branches{/branch}","tags_url":"https://api.github.com/repos/bakura10/guzzle-services/tags","blobs_url":"https://api.github.com/repos/bakura10/guzzle-services/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bakura10/guzzle-services/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bakura10/guzzle-services/git/refs{/sha}","trees_url":"https://api.github.com/repos/bakura10/guzzle-services/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bakura10/guzzle-services/statuses/{sha}","languages_url":"https://api.github.com/repos/bakura10/guzzle-services/languages","stargazers_url":"https://api.github.com/repos/bakura10/guzzle-services/stargazers","contributors_url":"https://api.github.com/repos/bakura10/guzzle-services/contributors","subscribers_url":"https://api.github.com/repos/bakura10/guzzle-services/subscribers","subscription_url":"https://api.github.com/repos/bakura10/guzzle-services/subscription","commits_url":"https://api.github.com/repos/bakura10/guzzle-services/commits{/sha}","git_commits_url":"https://api.github.com/repos/bakura10/guzzle-services/git/commits{/sha}","comments_url":"https://api.github.com/repos/bakura10/guzzle-services/comments{/number}","issue_comment_url":"https://api.github.com/repos/bakura10/guzzle-services/issues/comments/{number}","contents_url":"https://api.github.com/repos/bakura10/guzzle-services/contents/{+path}","compare_url":"https://api.github.com/repos/bakura10/guzzle-services/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bakura10/guzzle-services/merges","archive_url":"https://api.github.com/repos/bakura10/guzzle-services/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bakura10/guzzle-services/downloads","issues_url":"https://api.github.com/repos/bakura10/guzzle-services/issues{/number}","pulls_url":"https://api.github.com/repos/bakura10/guzzle-services/pulls{/number}","milestones_url":"https://api.github.com/repos/bakura10/guzzle-services/milestones{/number}","notifications_url":"https://api.github.com/repos/bakura10/guzzle-services/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bakura10/guzzle-services/labels{/name}","releases_url":"https://api.github.com/repos/bakura10/guzzle-services/releases{/id}","created_at":"2015-01-02T09:13:45Z","updated_at":"2015-01-02T09:13:48Z","pushed_at":"2015-01-11T13:55:50Z","git_url":"git://github.com/bakura10/guzzle-services.git","ssh_url":"git@github.com:bakura10/guzzle-services.git","clone_url":"https://github.com/bakura10/guzzle-services.git","svn_url":"https://github.com/bakura10/guzzle-services","homepage":null,"size":200,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"guzzle:master","ref":"master","sha":"b3068f5a54184141903a22b18586b40d25c8610d","user":{"login":"guzzle","id":638632,"avatar_url":"https://avatars.githubusercontent.com/u/638632?v=3","gravatar_id":"","url":"https://api.github.com/users/guzzle","html_url":"https://github.com/guzzle","followers_url":"https://api.github.com/users/guzzle/followers","following_url":"https://api.github.com/users/guzzle/following{/other_user}","gists_url":"https://api.github.com/users/guzzle/gists{/gist_id}","starred_url":"https://api.github.com/users/guzzle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guzzle/subscriptions","organizations_url":"https://api.github.com/users/guzzle/orgs","repos_url":"https://api.github.com/users/guzzle/repos","events_url":"https://api.github.com/users/guzzle/events{/privacy}","received_events_url":"https://api.github.com/users/guzzle/received_events","type":"Organization","site_admin":false},"repo":{"id":17783876,"name":"guzzle-services","full_name":"guzzle/guzzle-services","owner":{"login":"guzzle","id":638632,"avatar_url":"https://avatars.githubusercontent.com/u/638632?v=3","gravatar_id":"","url":"https://api.github.com/users/guzzle","html_url":"https://github.com/guzzle","followers_url":"https://api.github.com/users/guzzle/followers","following_url":"https://api.github.com/users/guzzle/following{/other_user}","gists_url":"https://api.github.com/users/guzzle/gists{/gist_id}","starred_url":"https://api.github.com/users/guzzle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guzzle/subscriptions","organizations_url":"https://api.github.com/users/guzzle/orgs","repos_url":"https://api.github.com/users/guzzle/repos","events_url":"https://api.github.com/users/guzzle/events{/privacy}","received_events_url":"https://api.github.com/users/guzzle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guzzle/guzzle-services","description":"Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.","fork":false,"url":"https://api.github.com/repos/guzzle/guzzle-services","forks_url":"https://api.github.com/repos/guzzle/guzzle-services/forks","keys_url":"https://api.github.com/repos/guzzle/guzzle-services/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guzzle/guzzle-services/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guzzle/guzzle-services/teams","hooks_url":"https://api.github.com/repos/guzzle/guzzle-services/hooks","issue_events_url":"https://api.github.com/repos/guzzle/guzzle-services/issues/events{/number}","events_url":"https://api.github.com/repos/guzzle/guzzle-services/events","assignees_url":"https://api.github.com/repos/guzzle/guzzle-services/assignees{/user}","branches_url":"https://api.github.com/repos/guzzle/guzzle-services/branches{/branch}","tags_url":"https://api.github.com/repos/guzzle/guzzle-services/tags","blobs_url":"https://api.github.com/repos/guzzle/guzzle-services/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guzzle/guzzle-services/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guzzle/guzzle-services/git/refs{/sha}","trees_url":"https://api.github.com/repos/guzzle/guzzle-services/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guzzle/guzzle-services/statuses/{sha}","languages_url":"https://api.github.com/repos/guzzle/guzzle-services/languages","stargazers_url":"https://api.github.com/repos/guzzle/guzzle-services/stargazers","contributors_url":"https://api.github.com/repos/guzzle/guzzle-services/contributors","subscribers_url":"https://api.github.com/repos/guzzle/guzzle-services/subscribers","subscription_url":"https://api.github.com/repos/guzzle/guzzle-services/subscription","commits_url":"https://api.github.com/repos/guzzle/guzzle-services/commits{/sha}","git_commits_url":"https://api.github.com/repos/guzzle/guzzle-services/git/commits{/sha}","comments_url":"https://api.github.com/repos/guzzle/guzzle-services/comments{/number}","issue_comment_url":"https://api.github.com/repos/guzzle/guzzle-services/issues/comments/{number}","contents_url":"https://api.github.com/repos/guzzle/guzzle-services/contents/{+path}","compare_url":"https://api.github.com/repos/guzzle/guzzle-services/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guzzle/guzzle-services/merges","archive_url":"https://api.github.com/repos/guzzle/guzzle-services/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guzzle/guzzle-services/downloads","issues_url":"https://api.github.com/repos/guzzle/guzzle-services/issues{/number}","pulls_url":"https://api.github.com/repos/guzzle/guzzle-services/pulls{/number}","milestones_url":"https://api.github.com/repos/guzzle/guzzle-services/milestones{/number}","notifications_url":"https://api.github.com/repos/guzzle/guzzle-services/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guzzle/guzzle-services/labels{/name}","releases_url":"https://api.github.com/repos/guzzle/guzzle-services/releases{/id}","created_at":"2014-03-15T19:41:07Z","updated_at":"2015-01-10T11:32:23Z","pushed_at":"2014-12-23T19:17:53Z","git_url":"git://github.com/guzzle/guzzle-services.git","ssh_url":"git@github.com:guzzle/guzzle-services.git","clone_url":"https://github.com/guzzle/guzzle-services.git","svn_url":"https://github.com/guzzle/guzzle-services","homepage":null,"size":516,"stargazers_count":46,"watchers_count":46,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":6,"forks":24,"open_issues":6,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/guzzle/guzzle-services/pulls/67"},"html":{"href":"https://github.com/guzzle/guzzle-services/pull/67"},"issue":{"href":"https://api.github.com/repos/guzzle/guzzle-services/issues/67"},"comments":{"href":"https://api.github.com/repos/guzzle/guzzle-services/issues/67/comments"},"review_comments":{"href":"https://api.github.com/repos/guzzle/guzzle-services/pulls/67/comments"},"review_comment":{"href":"https://api.github.com/repos/guzzle/guzzle-services/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/guzzle/guzzle-services/pulls/67/commits"},"statuses":{"href":"https://api.github.com/repos/guzzle/guzzle-services/statuses/706dc4e0711079f4ea2a36e8a0c911b4571f0651"}}}}