From 5498f4f823a1719a3729851a5ac928e615eb91e9 Mon Sep 17 00:00:00 2001 From: Ashvin Ranjan Date: Tue, 2 Aug 2022 16:03:50 -0700 Subject: [PATCH] Remove omitempty from Content field of RepositoryContentFileOptions --- github/repos_contents.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/repos_contents.go b/github/repos_contents.go index d6f2dd9d74..431d4b12dc 100644 --- a/github/repos_contents.go +++ b/github/repos_contents.go @@ -51,7 +51,7 @@ type RepositoryContentResponse struct { // RepositoryContentFileOptions specifies optional parameters for CreateFile, UpdateFile, and DeleteFile. type RepositoryContentFileOptions struct { Message *string `json:"message,omitempty"` - Content []byte `json:"content,omitempty"` // unencoded + Content []byte `json:"content"` // unencoded SHA *string `json:"sha,omitempty"` Branch *string `json:"branch,omitempty"` Author *CommitAuthor `json:"author,omitempty"`