Pulls

创建合并请求。Create pull request.

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

post/{repo}/-/pulls

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

Path parameters

repostring required

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

Request body

basestring

目标分支名称。 Target branch name.

bodystring

合并请求内容。Merge request content.

headstring

源分支名称。 Source branch name.

head_repostring

源分支所在的仓库标识。示例值:owner/repo

titlestring

合并请求标题。Merge request title.

Response

Created

Changes

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