{"action":"created","issue":{"url":"https://api.github.com/repos/KnpLabs/php-github-api/issues/677","repository_url":"https://api.github.com/repos/KnpLabs/php-github-api","labels_url":"https://api.github.com/repos/KnpLabs/php-github-api/issues/677/labels{/name}","comments_url":"https://api.github.com/repos/KnpLabs/php-github-api/issues/677/comments","events_url":"https://api.github.com/repos/KnpLabs/php-github-api/issues/677/events","html_url":"https://github.com/KnpLabs/php-github-api/pull/677","id":294243667,"number":677,"title":"Fix return type","user":{"login":"ptrkcsk","id":4766244,"avatar_url":"https://avatars2.githubusercontent.com/u/4766244?v=4","gravatar_id":"","url":"https://api.github.com/users/ptrkcsk","html_url":"https://github.com/ptrkcsk","followers_url":"https://api.github.com/users/ptrkcsk/followers","following_url":"https://api.github.com/users/ptrkcsk/following{/other_user}","gists_url":"https://api.github.com/users/ptrkcsk/gists{/gist_id}","starred_url":"https://api.github.com/users/ptrkcsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptrkcsk/subscriptions","organizations_url":"https://api.github.com/users/ptrkcsk/orgs","repos_url":"https://api.github.com/users/ptrkcsk/repos","events_url":"https://api.github.com/users/ptrkcsk/events{/privacy}","received_events_url":"https://api.github.com/users/ptrkcsk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-04T23:59:51Z","updated_at":"2018-02-18T20:06:12Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/KnpLabs/php-github-api/pulls/677","html_url":"https://github.com/KnpLabs/php-github-api/pull/677","diff_url":"https://github.com/KnpLabs/php-github-api/pull/677.diff","patch_url":"https://github.com/KnpLabs/php-github-api/pull/677.patch"},"body":"`\\Github\\Api\\Repository\\Contents::archive()` claims to return an array, but in my testing it returns a string.\r\n\r\n```php\r\necho gettype(\r\n    (new \\Github\\Client())->api('repo')\r\n        ->contents()\r\n        ->archive('twbs', 'bootstrap', 'tarball', 'tags/v4.0.0')\r\n); // `string`\r\n```\r\n\r\nI spun up a small test project to test it. [Here's the gist](https://gist.github.com/ptrkcsk/57928b067fbd8303218d5d74d7efab07).\r\n"},"comment":{"url":"https://api.github.com/repos/KnpLabs/php-github-api/issues/comments/366543356","html_url":"https://github.com/KnpLabs/php-github-api/pull/677#issuecomment-366543356","issue_url":"https://api.github.com/repos/KnpLabs/php-github-api/issues/677","id":366543356,"user":{"login":"ptrkcsk","id":4766244,"avatar_url":"https://avatars2.githubusercontent.com/u/4766244?v=4","gravatar_id":"","url":"https://api.github.com/users/ptrkcsk","html_url":"https://github.com/ptrkcsk","followers_url":"https://api.github.com/users/ptrkcsk/followers","following_url":"https://api.github.com/users/ptrkcsk/following{/other_user}","gists_url":"https://api.github.com/users/ptrkcsk/gists{/gist_id}","starred_url":"https://api.github.com/users/ptrkcsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptrkcsk/subscriptions","organizations_url":"https://api.github.com/users/ptrkcsk/orgs","repos_url":"https://api.github.com/users/ptrkcsk/repos","events_url":"https://api.github.com/users/ptrkcsk/events{/privacy}","received_events_url":"https://api.github.com/users/ptrkcsk/received_events","type":"User","site_admin":false},"created_at":"2018-02-18T20:06:12Z","updated_at":"2018-02-18T20:06:12Z","author_association":"NONE","body":"The result is the contents of the archive."}}
{"actor":{"display_login":"ptrkcsk"}}