{"action":"opened","issue":{"url":"https://api.github.com/repos/PyGithub/PyGithub/issues/786","repository_url":"https://api.github.com/repos/PyGithub/PyGithub","labels_url":"https://api.github.com/repos/PyGithub/PyGithub/issues/786/labels{/name}","comments_url":"https://api.github.com/repos/PyGithub/PyGithub/issues/786/comments","events_url":"https://api.github.com/repos/PyGithub/PyGithub/issues/786/events","html_url":"https://github.com/PyGithub/PyGithub/issues/786","id":321385883,"number":786,"title":"update_file doesn't add the trailing slash after contents","user":{"login":"shane-gearon-hs","id":10536511,"avatar_url":"https://avatars3.githubusercontent.com/u/10536511?v=4","gravatar_id":"","url":"https://api.github.com/users/shane-gearon-hs","html_url":"https://github.com/shane-gearon-hs","followers_url":"https://api.github.com/users/shane-gearon-hs/followers","following_url":"https://api.github.com/users/shane-gearon-hs/following{/other_user}","gists_url":"https://api.github.com/users/shane-gearon-hs/gists{/gist_id}","starred_url":"https://api.github.com/users/shane-gearon-hs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shane-gearon-hs/subscriptions","organizations_url":"https://api.github.com/users/shane-gearon-hs/orgs","repos_url":"https://api.github.com/users/shane-gearon-hs/repos","events_url":"https://api.github.com/users/shane-gearon-hs/events{/privacy}","received_events_url":"https://api.github.com/users/shane-gearon-hs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-08T23:59:47Z","updated_at":"2018-05-08T23:59:47Z","closed_at":null,"author_association":"NONE","body":"The path variable should be preceded by a forward slash to create a valid url for the PUT call.\r\n\r\nSteps to Reproduce:\r\ngithub.get_repo(\"my_repo\").update_file(\"README.md\", \"Updating readme.\", base64.b64encode(content), sha)\r\n\r\nResult:\r\nhttps://github.com/api/v3/repos/my_repo/contentsREADME.md\r\n\r\nExpected Result:\r\nhttps://github.com/api/v3/repos/my_repo/contents/README.md\r\n\r\nLooks like it's happening here.\r\nhttps://github.com/PyGithub/PyGithub/blob/master/github/Repository.py#L1504\r\n\r\n"}}
{"actor":{"display_login":"shane-gearon-hs"}}