Pulls
更新合并请求。Update pull request.
更新指定合并请求的基本信息,包括标题、描述、状态等字段。支持部分更新,仅传入需要修改的字段即可。通过修改 state 字段来打开或关闭合并请求。 Update basic information of the specified pull request, including title, description, state, and other fields. Supports partial updates; only pass the fields that need to be changed. You can open or close the pull request by modifying the state field. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-pr:rw
patch/{repo}/-/pulls/{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}/-/pulls/{number}
- Auth: API key in header Authorization
Path parameters
repostring required
不带.git后缀的仓库名称。格式:组织名称/仓库名称。Repository name without .git suffix. Format: org/repo.
numberstring required
Pull唯一标识编号。
Request body
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.