外观
RepoIssueListParamType
约 585 字大约 2 分钟
2025-08-01
@candriajs/git-neko-kit / RepoIssueListParamType
接口: RepoIssueListParamType
定义于: types/platform/issue.ts:86
议题列表参数类型
继承
属性
assignee?
optional
assignee:string
定义于: types/platform/issue.ts:112
指派人用户名
- 传入用户名:返回指派给该用户的议题
- 传入 "none":返回所有的议题
- 传入用户名:返回指派给该用户的议题
- 传入 "*":返回已指派给任何用户的议题
creator?
optional
creator:string
定义于: types/platform/issue.ts:123
创建者用户名,筛选由特定用户创建的议题
direction?
optional
direction:"asc"
|"desc"
定义于: types/platform/issue.ts:147
排序方向
默认值
"desc"
- asc: 升序
- desc: 降序
labels?
optional
labels:string
定义于: types/platform/issue.ts:130
标签列表 以逗号分隔的标签名称列表
示例
"bug,ui,@high"
milestone?
optional
milestone:string
|number
定义于: types/platform/issue.ts:94
里程碑筛选
默认值
*
- 传入数字时:按里程碑编号筛选
- 传入 "*":接受任何里程碑的议题
- 传入 "none":返回没有里程碑的议题
owner
owner:
string
定义于: types/platform/base.ts:28
仓库的拥有者
继承自
RepoBaseParamType.owner
page?
optional
page:number
定义于: types/platform/issue.ts:168
页码
默认值
1
per_page?
optional
per_page:number
定义于: types/platform/issue.ts:162
每页结果数量
默认值
30
备注
取值范围:1-100
repo
repo:
string
定义于: types/platform/base.ts:32
仓库的名称
继承自
RepoBaseParamType.repo
since?
optional
since:string
定义于: types/platform/issue.ts:155
筛选此时间之后更新的议题 仅显示在指定时间之后更新的结果 格式为 ISO 8601: YYYY-MM-DDTHH:MM:SSZ
示例
"2023-01-01T00:00:00Z"
sort?
optional
sort:"created"
|"updated"
|"comments"
定义于: types/platform/issue.ts:139
排序方式
默认值
"created"
- created: 按创建时间排序
- updated: 按更新时间排序
- comments: 按评论数排序
state?
optional
state:"all"
|"open"
|"closed"
定义于: types/platform/issue.ts:103
议题状态
默认值
"open"
- open: 打开的议题
- closed: 关闭的议题
- all: 所有议题
type?
optional
type:string
定义于: types/platform/issue.ts:120
议题类型
- 传入类型名:返回指定类型的议题
- 传入 "*":接受任何类型的议题
- 传入 "none":返回没有类型的议题