Issues

更新 Issue。Update issue.

更新指定仓库中已有 Issue 的信息,包括标题、描述、状态、优先级等字段。支持部分更新,仅传入需要修改的字段即可。 Update an existing issue in the specified repository, including title, description, state, priority, and other fields. Supports partial updates; only pass the fields that need to be changed. state 和 state_reason 必须同时提供或同时不提供,否则会返回参数错误。 Note: state and state_reason must be provided together or omitted together, otherwise a parameter error will be returned. 修改状态时需指定合理的状态原因(如"已完成"或"不计划修复")。调用者需具有仓库的写入权限或 Triage 角色。 When changing state, specify a valid state reason (e.g., "completed" or "not planned"). The caller must have write access or the Triage role. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-issue:rw

patch/{repo}/-/issues/{number}

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/{number}
  • Auth: API key in header Authorization

Path parameters

repostring required

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

numberinteger required

Issue唯一标识编号。

Request body

bodystring

Issue内容。

end_datestring

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

invisibleboolean

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

prioritystring

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

start_datestring

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

statestring

Issue状态。可选值:open,closed

state_reasonstring

ISSUE状态变更原因。可选值:completed,not_planned,reopened

titlestring

Issue标题。

Response

OK

Changes

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