Repositories

查询组织可见仓库。List visible repos.

分页查询组织下用户有权限查看的仓库列表,支持按类型、状态等条件过滤。 Paginate repositories that the user has access to within the organization. Supports filtering by type, status, etc. 访问令牌调用此接口需包含以下权限。Required permissions for access token. group-resource:r

get/{slug}/-/repos

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

Path parameters

slugstring required

资源路径。Resource slug.

Query parameters

pageinteger

分页页码。Pagination page number.

page_sizeinteger

分页页大小。Pagination page size.

filter_type'private' | 'public' | 'secret'

仓库类型。Repositories type.

flags'KnowledgeBase' | 'NPC' | 'Skills'

仓库类型标记,逗号分隔。Repository type flags, comma separated

flags_match'intersection' | 'union'

flags 多值匹配模式。Flags match mode when multiple flags provided

status'active' | 'archived'

仓库状态。Repository status

order_by'created_at' | 'last_updated_at' | 'stars' | 'slug_path' | 'forks'

排序字段。Order field

descboolean

排序顺序。Ordering.

descendant'all' | 'sub' | 'grand'

查全部/查询直接属于当前组织的仓库/查询子组织的仓库。Get all/Get repos belong to current org or sub-organization

searchstring

关键字。Key word.

Response

OK

Changes

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