代码托管 CODEARTS REPO-创建提交:请求示例

时间:2024-11-30 15:28:36

请求示例

POST https://{endpoint}/v2/projects/859341/repository/commits

{
  "branch" : "master",
  "commit_message" : "some commit message",
  "actions" : [ {
    "action" : "create",
    "file_path" : "test001.txt",
    "content" : "some content"
  } ]
}
support.huaweicloud.com/api-codeartsrepo/CreateCommit.html