{"action":"created","issue":{"url":"https://api.github.com/repos/google/go-github/issues/878","repository_url":"https://api.github.com/repos/google/go-github","labels_url":"https://api.github.com/repos/google/go-github/issues/878/labels{/name}","comments_url":"https://api.github.com/repos/google/go-github/issues/878/comments","events_url":"https://api.github.com/repos/google/go-github/issues/878/events","html_url":"https://github.com/google/go-github/pull/878","id":308421047,"number":878,"title":"In CreateFork, return the repo info when 202 Accepted occurs.","user":{"login":"dsymonds","id":31506,"avatar_url":"https://avatars2.githubusercontent.com/u/31506?v=4","gravatar_id":"","url":"https://api.github.com/users/dsymonds","html_url":"https://github.com/dsymonds","followers_url":"https://api.github.com/users/dsymonds/followers","following_url":"https://api.github.com/users/dsymonds/following{/other_user}","gists_url":"https://api.github.com/users/dsymonds/gists{/gist_id}","starred_url":"https://api.github.com/users/dsymonds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsymonds/subscriptions","organizations_url":"https://api.github.com/users/dsymonds/orgs","repos_url":"https://api.github.com/users/dsymonds/repos","events_url":"https://api.github.com/users/dsymonds/events{/privacy}","received_events_url":"https://api.github.com/users/dsymonds/received_events","type":"User","site_admin":false},"labels":[{"id":698400531,"url":"https://api.github.com/repos/google/go-github/labels/cla:%20yes","name":"cla: yes","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-26T03:19:02Z","updated_at":"2018-04-03T01:40:24Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/google/go-github/pulls/878","html_url":"https://github.com/google/go-github/pull/878","diff_url":"https://github.com/google/go-github/pull/878.diff","patch_url":"https://github.com/google/go-github/pull/878.patch"},"body":"Per the docs\r\n(https://developer.github.com/v3/repos/forks/#create-a-fork), there is\r\nstill a useful body, and it is helpful for automatic fork creation to\r\nget that response.\r\n\r\nI'm not sure if this approach is okay. An alternate is to do the decoding inside Do, so this works for the ~dozen other places that might get an AcceptedError, but I didn't want to go check the docs for every single case to see whether the response body is meant to have useful data."},"comment":{"url":"https://api.github.com/repos/google/go-github/issues/comments/378100705","html_url":"https://github.com/google/go-github/pull/878#issuecomment-378100705","issue_url":"https://api.github.com/repos/google/go-github/issues/878","id":378100705,"user":{"login":"dsymonds","id":31506,"avatar_url":"https://avatars2.githubusercontent.com/u/31506?v=4","gravatar_id":"","url":"https://api.github.com/users/dsymonds","html_url":"https://github.com/dsymonds","followers_url":"https://api.github.com/users/dsymonds/followers","following_url":"https://api.github.com/users/dsymonds/following{/other_user}","gists_url":"https://api.github.com/users/dsymonds/gists{/gist_id}","starred_url":"https://api.github.com/users/dsymonds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsymonds/subscriptions","organizations_url":"https://api.github.com/users/dsymonds/orgs","repos_url":"https://api.github.com/users/dsymonds/repos","events_url":"https://api.github.com/users/dsymonds/events{/privacy}","received_events_url":"https://api.github.com/users/dsymonds/received_events","type":"User","site_admin":false},"created_at":"2018-04-03T01:40:24Z","updated_at":"2018-04-03T01:40:24Z","author_association":"MEMBER","body":"Good call on adding a test. It turned up a bug in Client.Do that would close the response body on error, preventing the caller from being able to process it at all."}}
{"actor":{"display_login":"dsymonds"}}