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
| Name | Type | JSON name | Description |
|---|---|---|---|
Branch | string? | branch | Target branch name (defaults to the repository's defaultBranch). It must exist. |
Content | string? | content | The file's new UTF-8 text. Give it for an edit or a new file; leave it out to delete the file. |
Delete | bool? | delete | True to delete the file (then `content` is not given). |
ExpectedOid | string? | expectedOid | The 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. |
Message | string? | message | The commit message (up to 500 characters); a short one is made from the change when it is left out. |
NewPath | string? | newPath | Where to move the file when `content` is given: the file at `path` is removed and its new text is written here. |
ParentCommitSha | string? | parentCommitSha | The commit the branch pointed at when it was read; a protected branch refuses a commit that is not built on its head. |
Path | string? | path | The file's repository-relative path. |