检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
响应状态 表4 Error 参数 参数类型 描述 code String 错误码 message String 错误信息 请求示例 PUT https://{endpoint}/v1/repositories/{repository_uuid}/pipeline 响应示例 状态码: 200
响应状态 表4 Error 参数 参数类型 描述 code String 错误码 message String 错误信息 请求示例 GET https://{endpoint}/v1/repositories/{repository_uuid}/master 响应示例 状态码: 200
新建仓库,选择导入仓库方式。登录并进入到CodeArts Repo, 选择“新建仓库 > 导入仓库”。 导入方式选择导入“Git Url”。并填写Codeup的仓库https url地址。 配置Codeup的“用户名”和“个人访问令牌”。用户名: Codeup登录用户名,一般为手机号。AccessToken:
登录并进入到CodeArts Repo首页,选择“新建仓库 > 导入仓库”。 导入方式选择“Git Url”, 并填写GitLab的仓库https url地址。 配置Gitlab的用户名和个人访问令牌。 用户名: 实际未使用,可任意填一字符串,如test。 AccessToken:在GitLab选择“用户设置
参数 参数类型 描述 error_msg String 响应错误信息 error_code String 响应错误码 请求示例 POST https://{endpoint}/v4/{project_id}/repositories/{repository_id}/user-group/{user_group_id}
key_id String 部署密钥id 最小长度:1 最大长度:40 key_title String 部署密钥名称 请求示例 POST https://{endpoint}/v1/repositories/{repository_id}/deploy_keys { "key_title"
is_double_name Boolean 是否与分支重名 name String 标签名 最小长度:1 最大长度:260 请求示例 GET https://{endpoint}/v2/repositories/{repository_id}/tags 响应示例 状态码: 200 OK {
响应状态 表4 Error 参数 参数类型 描述 code String 错误码 message String 错误信息 请求示例 GET https://{endpoint}/v1/repositories/repoid 响应示例 状态码: 200 OK { "result" :
参数 参数类型 描述 additions Integer 增加的行数 deletions Integer 删除的行数 请求示例 GET https://{endpoint}/v2/repositories/907199/commit_lines 响应示例 状态码: 200 OK {
响应状态 表4 Error 参数 参数类型 描述 code String 错误码 message String 错误信息 请求示例 POST https://{endpoint}/v2/projects/issues { "project_id" : "a6142fa102b740988fe45cc40254d61c"
响应状态 表5 Error 参数 参数类型 描述 code String 错误码 message String 错误信息 请求示例 PUT https://{endpoint}/v1/repositories/{repository_uuid}/template_status { "templateType":
响应状态 表4 Error 参数 参数类型 描述 code String 错误码 message String 错误信息 请求示例 GET https://{endpoint}/v1/projects/{project_uuid}/repositories/validation/{repository_name}
约束限制: 不涉及 取值范围: 0,私有 20,公开只读 默认取值: 0 import_url 否 String 参数解释: 模板仓库的https地址的base64加密 约束限制: 不涉及 取值范围: URL长度[10-512] 默认取值: 不涉及 description 否 String
json”文件。其中,repo_api_prefix是CodeArts Repo 的openAPI地址。“” { "repo_api_prefix": "https://${open_api}", "x_auth_token": "用户Token" } 登录CodeArts控制台创建项目并保存您的项目ID。
仓库是否可以统计 join_id String sidekiq任务的 id message String 启动仓库统计返回的信息 请求示例 POST https://{endpoint}/v1/repositories/{repository_id}/statistics { "branch_name"
参数 参数类型 描述 additions Integer 增加的行数 deletions Integer 删除的行数 请求示例 GET https://{endpoint}/v2/repositories/907199/commit-lines 响应示例 状态码: 200 OK {
响应Body参数 参数 参数类型 描述 error_code String 响应错误 error_msg String 响应错误 请求示例 POST https://{endpoint}/v4/{project_id}/groups 响应示例 状态码: 201 OK { "description":
blob_id String 文件块id file_type String 文件类型 content String 文件内容 请求示例 GET https://{endpoint}/v1/repositories/{repository_uuid}/branch/{branch_name}/file
查询某个仓库的文件信息 获取仓库中文件的信息,如名称、大小、内容。请注意,文件内容是Base64编码的。 User 接口 说明 https账号密码校验 判断用户使用 https 上传/下载代码时输入的用户名和密码是否合法。 WebHook 接口 说明 查询指定仓库的webhook 获取仓库webhook。
响应状态 表5 Error 参数 参数类型 描述 code String 错误码 message String 错误信息 请求示例 PUT https://{endpoint}/v2/repositories/{repository_uuid}/template-status { "template_type":