{"action":"created","issue":{"url":"https://api.github.com/repos/michael/github/issues/147","labels_url":"https://api.github.com/repos/michael/github/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/michael/github/issues/147/comments","events_url":"https://api.github.com/repos/michael/github/issues/147/events","html_url":"https://github.com/michael/github/issues/147","id":52710109,"number":147,"title":"Broken getSha and repo.write","user":{"login":"gmaclennan","id":290457,"avatar_url":"https://avatars.githubusercontent.com/u/290457?v=3","gravatar_id":"","url":"https://api.github.com/users/gmaclennan","html_url":"https://github.com/gmaclennan","followers_url":"https://api.github.com/users/gmaclennan/followers","following_url":"https://api.github.com/users/gmaclennan/following{/other_user}","gists_url":"https://api.github.com/users/gmaclennan/gists{/gist_id}","starred_url":"https://api.github.com/users/gmaclennan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmaclennan/subscriptions","organizations_url":"https://api.github.com/users/gmaclennan/orgs","repos_url":"https://api.github.com/users/gmaclennan/repos","events_url":"https://api.github.com/users/gmaclennan/events{/privacy}","received_events_url":"https://api.github.com/users/gmaclennan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-12-23T03:03:40Z","updated_at":"2015-03-18T15:01:40Z","closed_at":null,"body":"This is currently broken by all the merged pull requests from 11 days ago.\r\n\r\nI think it is a problem with the Accept header being set to 'application/vnd.github.v3.raw+json' in #105 but the improved Sha functions etc. from #144 rely on the Accept header being 'application/json' in @darvin commit, but should probably be 'application/vnd.github.v3+json'\r\n\r\nHowever, this change would mean that responses to repo.read with return json with the content base64 encoded, and would break the test on repo.read.\r\n\r\nI'm a little confused about how to fix it, since this seems to be a result of different pull requests taking different approaches which are incompatible.\r\n\r\nThere should also be a test for basic functionality such as writing or updating a file - I'm surprised no one has noticed this breaking change with the new version.\r\n\r\nSorry I can't write a test and help more. It's taken me about 3 hours just trying to understand what is going on and why things are broken now."},"comment":{"url":"https://api.github.com/repos/michael/github/issues/comments/83011137","html_url":"https://github.com/michael/github/issues/147#issuecomment-83011137","issue_url":"https://api.github.com/repos/michael/github/issues/147","id":83011137,"user":{"login":"michael","id":2931,"avatar_url":"https://avatars.githubusercontent.com/u/2931?v=3","gravatar_id":"","url":"https://api.github.com/users/michael","html_url":"https://github.com/michael","followers_url":"https://api.github.com/users/michael/followers","following_url":"https://api.github.com/users/michael/following{/other_user}","gists_url":"https://api.github.com/users/michael/gists{/gist_id}","starred_url":"https://api.github.com/users/michael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael/subscriptions","organizations_url":"https://api.github.com/users/michael/orgs","repos_url":"https://api.github.com/users/michael/repos","events_url":"https://api.github.com/users/michael/events{/privacy}","received_events_url":"https://api.github.com/users/michael/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T15:01:40Z","updated_at":"2015-03-18T15:01:40Z","body":"@aendrew I added you as a collaborator. Thanks for the help! :)"}}