SDK reference / Models / Delivery

CommitGitFileRequest

Kind: class

Namespace: Egulu.Sdk.Models.Delivery

Request payload for :commitFile on a hosted GitRepository: one change to one file, committed to a branch (W106).

Properties

NameTypeJSON nameDescription
Branchstring?branchTarget branch name (defaults to the repository's defaultBranch). It must exist.
Contentstring?contentThe file's new UTF-8 text. Give it for an edit or a new file; leave it out to delete the file.
Deletebool?deleteTrue to delete the file (then `content` is not given).
ExpectedOidstring?expectedOidThe Git blob ID the file had when it was read; the commit is refused when it has another (or when it is gone). Leave it out only for a new file, which must not exist.
Messagestring?messageThe commit message (up to 500 characters); a short one is made from the change when it is left out.
NewPathstring?newPathWhere to move the file when `content` is given: the file at `path` is removed and its new text is written here.
ParentCommitShastring?parentCommitShaThe commit the branch pointed at when it was read; a protected branch refuses a commit that is not built on its head.
Pathstring?pathThe file's repository-relative path.