{"action":"created","issue":{"url":"https://api.github.com/repos/octokit/octokit.rb/issues/581","labels_url":"https://api.github.com/repos/octokit/octokit.rb/issues/581/labels{/name}","comments_url":"https://api.github.com/repos/octokit/octokit.rb/issues/581/comments","events_url":"https://api.github.com/repos/octokit/octokit.rb/issues/581/events","html_url":"https://github.com/octokit/octokit.rb/issues/581","id":70531692,"number":581,"title":"Contents#update_contents not setting the branch properly","user":{"login":"schof","id":85518,"avatar_url":"https://avatars.githubusercontent.com/u/85518?v=3","gravatar_id":"","url":"https://api.github.com/users/schof","html_url":"https://github.com/schof","followers_url":"https://api.github.com/users/schof/followers","following_url":"https://api.github.com/users/schof/following{/other_user}","gists_url":"https://api.github.com/users/schof/gists{/gist_id}","starred_url":"https://api.github.com/users/schof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schof/subscriptions","organizations_url":"https://api.github.com/users/schof/orgs","repos_url":"https://api.github.com/users/schof/repos","events_url":"https://api.github.com/users/schof/events{/privacy}","received_events_url":"https://api.github.com/users/schof/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-23T22:46:27Z","updated_at":"2015-04-24T11:47:13Z","closed_at":null,"body":"According to the RDoc you're supposed to set the branch as an options param but that parameter is not honored by the API which expects the branch as a \"top level\" parameter.  Getting a `Octokit::Conflict` as a result since the `sha` I'm passing is not on the master branch.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/octokit/octokit.rb/issues/comments/95907598","html_url":"https://github.com/octokit/octokit.rb/issues/581#issuecomment-95907598","issue_url":"https://api.github.com/repos/octokit/octokit.rb/issues/581","id":95907598,"user":{"login":"pengwynn","id":865,"avatar_url":"https://avatars.githubusercontent.com/u/865?v=3","gravatar_id":"","url":"https://api.github.com/users/pengwynn","html_url":"https://github.com/pengwynn","followers_url":"https://api.github.com/users/pengwynn/followers","following_url":"https://api.github.com/users/pengwynn/following{/other_user}","gists_url":"https://api.github.com/users/pengwynn/gists{/gist_id}","starred_url":"https://api.github.com/users/pengwynn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pengwynn/subscriptions","organizations_url":"https://api.github.com/users/pengwynn/orgs","repos_url":"https://api.github.com/users/pengwynn/repos","events_url":"https://api.github.com/users/pengwynn/events{/privacy}","received_events_url":"https://api.github.com/users/pengwynn/received_events","type":"User","site_admin":true},"created_at":"2015-04-24T11:47:13Z","updated_at":"2015-04-24T11:47:13Z","body":"@schof You'll want to send the _blob sha_ that you want to update, not the head sha. If you don't have it locally, you can [fetch it via the API][api].\r\n\r\n[api]: https://developer.github.com/v3/repos/contents/#get-contents"}}