GitCode API 文档 2.0.0 已提供 Actions API。该 Issue 用于跟踪 gitcode-cli 对此接口的支持设计与实现。
DELETE
/api/v8/repos/{owner}/{repo}/actions/artifacts/{artifact_id}
delete_api_v8_repos_{owner}_{repo}_actions_artifacts_{artifact_id}
pipeline-v8
false
owner
repo
artifact_id
access_token
无。
{ "deprecated": false, "description": "删除仓库下指定制品。", "operationId": "delete_api_v8_repos_{owner}_{repo}_actions_artifacts_{artifact_id}", "tags": [ "pipeline-v8" ], "parameters": [ { "name": "owner", "in": "path", "description": "仓库所属空间地址(组织或个人的地址path)", "required": true, "schema": { "type": "string" } }, { "name": "repo", "in": "path", "description": "仓库路径(path)", "required": true, "schema": { "type": "string" } }, { "name": "artifact_id", "in": "path", "description": "制品id", "required": true, "schema": { "type": "string" } }, { "name": "access_token", "in": "query", "description": "", "required": true, "schema": { "type": "string" } } ], "responses": { "204": { "description": "", "headers": {} } }, "security": [], "method": "delete", "path": "/api/v8/repos/{owner}/{repo}/actions/artifacts/{artifact_id}", "servers": [ { "url": "https://api.gitcode.com", "description": "正式环境" } ], "securitySchemes": {}, "info": { "title": "GicodeOpenAPI", "description": "", "version": "1.0.0" }, "postman": { "name": "删除指定 Artifact", "description": { "content": "删除仓库下指定制品。", "type": "text/plain" }, "url": { "path": [ "api", "v8", "repos", ":owner", ":repo", "actions", "artifacts", ":artifact_id" ], "host": [ "{{baseUrl}}" ], "query": [ { "disabled": false, "description": { "content": "(Required) ", "type": "text/plain" }, "key": "access_token", "value": "" } ], "variable": [ { "disabled": false, "description": { "content": "(Required) 仓库所属空间地址(组织或个人的地址path)", "type": "text/plain" }, "type": "any", "value": "", "key": "owner" }, { "disabled": false, "description": { "content": "(Required) 仓库路径(path)", "type": "text/plain" }, "type": "any", "value": "", "key": "repo" }, { "disabled": false, "description": { "content": "(Required) 制品id", "type": "text/plain" }, "type": "any", "value": "", "key": "artifact_id" } ] }, "method": "DELETE" } }
infra-test/*
背景
GitCode API 文档 2.0.0 已提供 Actions API。该 Issue 用于跟踪 gitcode-cli 对此接口的支持设计与实现。
API 摘要
DELETE/api/v8/repos/{owner}/{repo}/actions/artifacts/{artifact_id}delete_api_v8_repos_{owner}_{repo}_actions_artifacts_{artifact_id}pipeline-v8falseRequest Parameters
ownerrepoartifact_idaccess_tokenRequest Body
无。
Responses
204
原始 OpenAPI Operation
{ "deprecated": false, "description": "删除仓库下指定制品。", "operationId": "delete_api_v8_repos_{owner}_{repo}_actions_artifacts_{artifact_id}", "tags": [ "pipeline-v8" ], "parameters": [ { "name": "owner", "in": "path", "description": "仓库所属空间地址(组织或个人的地址path)", "required": true, "schema": { "type": "string" } }, { "name": "repo", "in": "path", "description": "仓库路径(path)", "required": true, "schema": { "type": "string" } }, { "name": "artifact_id", "in": "path", "description": "制品id", "required": true, "schema": { "type": "string" } }, { "name": "access_token", "in": "query", "description": "", "required": true, "schema": { "type": "string" } } ], "responses": { "204": { "description": "", "headers": {} } }, "security": [], "method": "delete", "path": "/api/v8/repos/{owner}/{repo}/actions/artifacts/{artifact_id}", "servers": [ { "url": "https://api.gitcode.com", "description": "正式环境" } ], "securitySchemes": {}, "info": { "title": "GicodeOpenAPI", "description": "", "version": "1.0.0" }, "postman": { "name": "删除指定 Artifact", "description": { "content": "删除仓库下指定制品。", "type": "text/plain" }, "url": { "path": [ "api", "v8", "repos", ":owner", ":repo", "actions", "artifacts", ":artifact_id" ], "host": [ "{{baseUrl}}" ], "query": [ { "disabled": false, "description": { "content": "(Required) ", "type": "text/plain" }, "key": "access_token", "value": "" } ], "variable": [ { "disabled": false, "description": { "content": "(Required) 仓库所属空间地址(组织或个人的地址path)", "type": "text/plain" }, "type": "any", "value": "", "key": "owner" }, { "disabled": false, "description": { "content": "(Required) 仓库路径(path)", "type": "text/plain" }, "type": "any", "value": "", "key": "repo" }, { "disabled": false, "description": { "content": "(Required) 制品id", "type": "text/plain" }, "type": "any", "value": "", "key": "artifact_id" } ] }, "method": "DELETE" } }初步验收建议
infra-test/*仓库。access_token仅作为 API 参数记录,CLI 优先复用现有认证机制。