查询 NPC 调用记录。List NPC actions.
查询当前仓库内通过 @ 唤起 NPC 的调用记录,含已分发 / 被忽略 / 分发失败三类状态。仅仓库成员(Reporter 及以上)可访问。 Query NPC invocations in the repository, including dispatched / ignored / failed states. Only repository members (Reporter+) can access. 时间窗 start_time/end_time 默认最近 7 天,跨度 ≤ 90 天;page_size 默认 20,最大 100;仅 page=1 返回 total,翻页 total=0。 Time window defaults to last 7 days with span ≤ 90 days; page_size default 20, max 100; total returned only when page=1. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-cnb-history:r 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-cnb-history:r
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}/-/npc-observability/actions
- Auth: API key in header Authorization
Path parameters
仓库路径。Repo path.
Query parameters
结束时间,ISO8601 格式,默认当前时间;与 start_time 跨度 ≤ 90 天。End time in ISO8601, default now. Range <= 90 days.
事件类型,仅支持 "issue.comment@npc" 与 "pull_request.comment@npc"。Event type.
NPC 角色名。NPC role name.
NPC 仓库 slug。NPC repo slug.
分页页码,默认 1;仅 page=1 返回 total,翻页 total=0。Pagination page number, default(1); total only returned when page=1.
分页页大小,默认 20,最大 100。Pagination page size, default(20), max(100).
起始时间,ISO8601 格式,例如 "2026-06-10T00:00:00Z",默认 7 天前。Start time in ISO8601, default 7 days ago.
评论作者用户名。Comment author username.
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.