PutContentsInput
Defined in: git/git.ts:120
The body of a putContents() request.
Properties
Section titled “Properties”branch?
Section titled “branch?”
optionalbranch?:string
Defined in: git/git.ts:132
Defaults to the repo’s default branch.
content
Section titled “content”content:
string
Defined in: git/git.ts:124
The new file text (UTF-8); the client encodes it.
message
Section titled “message”message:
string
Defined in: git/git.ts:122
The commit message.
optionalsha?:string
Defined in: git/git.ts:130
The blob sha of the file being replaced, from getContents. Required to update an existing file,
and omitted to create one. This is what makes the write safe: if someone changed the file since it was
read, GitHub refuses (409) instead of overwriting, so the caller can read again and retry.