CreateCommitOnBranch
Appends a commit to the given branch of the procedure's repository as the authenticated user.
Sample
EXECUTE [Information].[CreateCommitOnBranch] @OwnerLogin='owner_login', @RepositoryName='repository_name', @BranchName='branch_name', @MessageBody='commit_message_body', @MessageHeadline='commit_message_headline', @ExpectedHeadOid='expected_head_oid', @FileChangeAdditions='[{"contents":"base64_content_1","path":"file1.txt"},{"contents":"base64_content_2","path":"file2.txt"}]', @FileChangeDeletions='[{"path":"file_to_delete1.txt"},{"path":"file_to_delete2.txt"}]'
Input
| Name | Type | Required | Description |
| OwnerLogin | String | False | The owner of the repository. |
| RepositoryName | String | True | The name of the repository. |
| BranchName | String | True | The unqualified name of the branch to append the commit to. |
| ExpectedHeadOid | String | True | The git commit oid expected at the head of the branch prior to the commit. |
| MessageBody | String | False | The commit message the be included with the commit. The body of the message. |
| MessageHeadline | String | True | The commit message the be included with the commit. The headline of the message. |
| FileChangeAdditions | String | False | File to add or change. |
| FileChangeDeletions | String | False | Files to delete. |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | Indicates whether or not the operation executed successfully. |
| Details | String | Any extra details on the operation's execution. |
| CommitId | String | The ID of the new commit. |