logo
28
30
WeChat Login

/Release/1.19.9

1.19.9
latest
OverviewDeployMetadata

CNB OpenAPI 变更日志 (from 1.15.17)

📋 变更概览

项目信息
新增接口12 个
修改接口22 个
删除接口1 个
⚠️ 破坏性变更有(3 处)

本次版本共涉及 35 个接口变更,其中 3 处破坏性变更,请重点关注。


⚠️ 破坏性变更

以下变更可能导致现有客户端不兼容,请优先关注。

  • POST /{repo}/-/build/ai/auto-pr:接口已删除
  • GET /search/public-repos:查询参数 page 已删除
  • GET /search/public-repos:查询参数 page_size 已删除

🔴 删除接口

分类方法路径描述
aiPOST/{repo}/-/build/ai/auto-pr根据传入的需求内容和需求标题借助 AI 自动编码并提 PR。Automatically code and create a PR with AI based on the input requirement content and title.

🟢 新增接口

分类方法路径描述
issuesGET/user/issues查询当前用户相关的 Issues。List issues for the authenticated user across all repositories.
issuesGET/{repo}/-/issues/{number}/activities查询指定 Issue 的 Timeline Activity
issuesGET/{repo}/-/issues/{number}/activities/latest/{id}查询某一动态之后的 Issue Activity
issuesPOST/{repo}/-/issues/{number}/comment-file-asset-upload-url创建一个 Issue 评论的文件上传 url。请使用 put 发起流式上传到 upload_url 地址。上传完成后将 asset_link 添加到创建评论请求的 body 中。 Create a file upload URL for an Issue comment. Please use put to initiate a stream upload to the upload_url address. After uploading, add the asset_link to the body of the create comment request.
issuesPOST/{repo}/-/issues/{number}/comment-image-asset-upload-url创建一个 Issue 评论的图片上传 url。请使用 put 发起流式上传到 upload_url 地址。上传完成后将 asset_link 添加到创建评论请求的 body 中。Create an image upload URL for an Issue comment. Please use put to initiate a stream upload to the upload_url address. After uploading, add the asset_link to the body of the create comment request.
knowledgebaseGET/npc/search全局语义搜索 NPC 角色
rankGET/ranks/repo/annual获取公仓年榜
rankGET/ranks/repo/daily获取公仓日榜
rankGET/ranks/repo/language-list获取排行榜语言
rankGET/ranks/repo/monthly获取公仓月榜
rankGET/ranks/repo/weekly获取公仓周榜
registriesGET/{slug}/-/packages/{type}/{name}/-/tag/{tag}/provenance获取制品标签的出生证明。 Get the specific tag provenance under specific package.

🟡 修改接口

分类方法路径变更类型
chargeGET/{slug}/-/charge/special-amount响应字段变更
gitsettingsGET/{repo}/-/settings/branch-protections响应字段变更
gitsettingsPOST/{repo}/-/settings/branch-protections响应字段变更
gitsettingsGET/{repo}/-/settings/branch-protections/{id}响应字段变更
gitsettingsPATCH/{repo}/-/settings/branch-protections/{id}响应字段变更
gitsettingsGET/{repo}/-/settings/push-limit响应字段变更
gitsettingsPUT/{repo}/-/settings/push-limit响应字段变更
issuesPOST/{repo}/-/issues响应字段变更
membersGET/{group}/-/members响应字段变更
membersGET/{repo}/-/members响应字段变更
membersGET/{slug}/-/list-members响应字段变更
pullsGET/{repo}/-/pulls查询参数变更
repositoriesGET/user/repos响应字段变更
repositoriesGET/users/{username}/pinned-repos响应字段变更
repositoriesGET/users/{username}/repos响应字段变更
repositoriesGET/{repo}响应字段变更
repositoriesGET/{slug}/-/pinned-repos响应字段变更
repositoriesPUT/{slug}/-/pinned-repos响应字段变更
repositoriesGET/{slug}/-/repos响应字段变更
searchGET/search/public-repos查询参数变更, 响应字段变更
starringGET/user/stared-repos响应字段变更
starringGET/users/{username}/stared-repos响应字段变更

详细说明

  • [charge] GET /{slug}/-/charge/special-amount
    • 新增响应字段 credit (int)
    • 新增响应字段 credit_desc (string)
    • 新增响应字段 credit_expire (string)
  • [gitsettings] GET /{repo}/-/settings/branch-protections
    • 新增响应字段 forbid_approve_pull_created_by_own_npc (bool)
  • [gitsettings] POST /{repo}/-/settings/branch-protections
    • 新增响应字段 forbid_approve_pull_created_by_own_npc (bool)
  • [gitsettings] GET /{repo}/-/settings/branch-protections/{id}
    • 新增响应字段 forbid_approve_pull_created_by_own_npc (bool)
  • [gitsettings] PATCH /{repo}/-/settings/branch-protections/{id}
    • 新增响应字段 forbid_approve_pull_created_by_own_npc (bool)
  • [gitsettings] GET /{repo}/-/settings/push-limit
    • 新增响应字段 commit_must_be_signatured (bool)
  • [gitsettings] PUT /{repo}/-/settings/push-limit
    • 新增响应字段 commit_must_be_signatured (bool)
  • [issues] POST /{repo}/-/issues
    • 新增响应字段 work_mode (bool)
  • [members] GET /{group}/-/members
    • 新增响应字段 member_channel (member.ChannelTypeTarget)
  • [members] GET /{repo}/-/members
    • 新增响应字段 member_channel (member.ChannelTypeTarget)
  • [members] GET /{slug}/-/list-members
    • 新增响应字段 member_channel (member.ChannelTypeTarget)
  • [pulls] GET /{repo}/-/pulls
    • 查询参数新增 updated_time_end (string)
    • 查询参数新增 order_by (string)
    • 查询参数新增 updated_time_begin (string)
  • [repositories] GET /user/repos
    • 新增响应字段 npc_created_pull_count (int)
    • 新增响应字段 npc_merged_pull_count (int)
    • 新增响应字段 npc_builded_count (int)
  • [repositories] GET /users/{username}/pinned-repos
    • 新增响应字段 npc_created_pull_count (int)
    • 新增响应字段 npc_merged_pull_count (int)
    • 新增响应字段 npc_builded_count (int)
  • [repositories] GET /users/{username}/repos
    • 新增响应字段 npc_created_pull_count (int)
    • 新增响应字段 npc_merged_pull_count (int)
    • 新增响应字段 npc_builded_count (int)
  • [repositories] GET /{repo}
    • 新增响应字段 npc_created_pull_count (int)
    • 新增响应字段 npc_merged_pull_count (int)
    • 新增响应字段 npc_builded_count (int)
  • [repositories] GET /{slug}/-/pinned-repos
    • 新增响应字段 npc_created_pull_count (int)
    • 新增响应字段 npc_merged_pull_count (int)
    • 新增响应字段 npc_builded_count (int)
  • [repositories] PUT /{slug}/-/pinned-repos
    • 新增响应字段 npc_created_pull_count (int)
    • 新增响应字段 npc_merged_pull_count (int)
    • 新增响应字段 npc_builded_count (int)
  • [repositories] GET /{slug}/-/repos
    • 新增响应字段 npc_created_pull_count (int)
    • 新增响应字段 npc_merged_pull_count (int)
    • 新增响应字段 npc_builded_count (int)
  • [search] GET /search/public-repos
    • ⚠️ 查询参数 page 已删除
    • ⚠️ 查询参数 page_size 已删除
    • 查询参数新增 topN (int)
    • 查询参数 key 变为可选
    • 新增响应字段 npc_created_pull_count (int)
    • 新增响应字段 npc_merged_pull_count (int)
    • 新增响应字段 npc_builded_count (int)
  • [starring] GET /user/stared-repos
    • 新增响应字段 npc_created_pull_count (int)
    • 新增响应字段 npc_merged_pull_count (int)
    • 新增响应字段 npc_builded_count (int)
  • [starring] GET /users/{username}/stared-repos
    • 新增响应字段 npc_created_pull_count (int)
    • 新增响应字段 npc_merged_pull_count (int)
    • 新增响应字段 npc_builded_count (int)
Attachment
2026-04-09 13:58:23
2026-04-09 13:58:23