From f1ae7200ba714113e800a3f50e4dd8ca72b2289e Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 5 Aug 2019 09:14:06 +1000 Subject: [PATCH] Update Repository.update_file() docstring (#1186) The docstring for Repository.update_file() insisted that content be base64 encoded, which is not quite correct, update it. Closes #1069 --- github/Repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/Repository.py b/github/Repository.py index 1e776d98..f8fb9ee8 100644 --- a/github/Repository.py +++ b/github/Repository.py @@ -1681,7 +1681,7 @@ class Repository(github.GithubObject.CompletableGithubObject): :calls: `PUT /repos/:owner/:repo/contents/:path `_ :param path: string, Required. The content path. :param message: string, Required. The commit message. - :param content: string, Required. The updated file content, Base64 encoded. + :param content: string, Required. The updated file content, either base64 encoded, or ready to be encoded. :param sha: string, Required. The blob SHA of the file being replaced. :param branch: string. The branch name. Default: the repository’s default branch (usually master) :param committer: InputGitAuthor, (optional), if no information is given the authenticated user's information will be used. You must specify both a name and email.