Pulls

查询合并请求文件列表。List pull request files.

查询指定合并请求中变更的文件列表。返回每个文件的路径、变更状态(新增、修改、删除、重命名)及变更统计信息。不分页,一次性返回所有变更文件。 List changed files in the specified merge request. Returns the path, change status (added, modified, deleted, renamed), and change statistics for each file. Not paginated; returns all changed files at once. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-pr:r

get/{repo}/-/pulls/{number}/files

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

Path parameters

repostring required

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

numberstring required

Pull唯一标识编号。

Response

OK

Changes

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