Skip to content

Commit aff6c4b

Browse files
Remove omitempty from Content field of RepositoryContentFileOptions (#2430)
Fixes: #2427
1 parent 3a432d6 commit aff6c4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github/repos_contents.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type RepositoryContentResponse struct {
5151
// RepositoryContentFileOptions specifies optional parameters for CreateFile, UpdateFile, and DeleteFile.
5252
type RepositoryContentFileOptions struct {
5353
Message *string `json:"message,omitempty"`
54-
Content []byte `json:"content,omitempty"` // unencoded
54+
Content []byte `json:"content"` // unencoded
5555
SHA *string `json:"sha,omitempty"`
5656
Branch *string `json:"branch,omitempty"`
5757
Author *CommitAuthor `json:"author,omitempty"`

0 commit comments

Comments
 (0)