Issues

创建 Issue。Create issue.

在指定仓库中创建 Issue。需要通过请求体传入标题等必填信息,可选设置描述、标签、处理人、优先级等字段。创建成功后返回完整的 Issue 详情。调用者需具有仓库的写入权限。 Create an issue in the specified repository. The request body must include title and other required fields. Description, labels, assignees, priority, etc. are optional. Returns full issue details on success. The caller must have write access to the repository. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-issue:rw

post/{repo}/-/issues

Request

  • Base URL: https://api.cnb.cool (the document declares no server; this is the origin it was published from)
  • URL: https://api.cnb.cool/{repo}/-/issues
  • Auth: API key in header Authorization

Path parameters

repostring required

不带.git后缀的仓库名称。格式:组织名称/仓库名称。Repository name without .git suffix. Format: org/repo.

Request body

assigneesstring[]

Issue处理人列表,最大限制为8。示例:["处理人1","处理人2"]

bodystring

Issue内容。

end_datestring

Issue结束日期。示例:2026-12-30

invisibleboolean

是否为私密 issue。Whether the issue is private.

labelsstring[]

Issue标签列表,最大限制为10。示例:["标签1","标签2"]

prioritystring

Issue优先级。可选值:-2P,-1P,P0,P1,P2,P3

start_datestring

Issue开始日期。示例:2026-01-01

titlestring

Issue标题。

work_modeboolean

是否开启工作模式。Whether work mode is enabled.

Response

Created

Changes

No recorded changes to this operation across all 1 revision of this API.