外观
PullRequestListParamType
约 322 字大约 1 分钟
2025-08-01
@candriajs/git-neko-kit / PullRequestListParamType
接口: PullRequestListParamType
定义于: types/platform/pull_request.ts:84
拉取请求列表参数类型
继承
属性
base?
optionalbase:string
定义于: types/platform/pull_request.ts:98
基础分支名称 用于筛选指定目标分支的拉取请求
示例
"main"direction?
optionaldirection:"asc"|"desc"
定义于: types/platform/pull_request.ts:112
排序方向
默认值
"desc"
- asc: 升序
- desc: 降序owner
owner:
string
定义于: types/platform/base.ts:28
仓库的拥有者
继承自
RepoBaseParamType.owner
page?
optionalpage:string
定义于: types/platform/pull_request.ts:124
页码
默认值
"1"备注
必须大于等于1
per_page?
optionalper_page:string
定义于: types/platform/pull_request.ts:118
每页结果数量
默认值
"30"备注
取值范围:1-100
repo
repo:
string
定义于: types/platform/base.ts:32
仓库的名称
继承自
RepoBaseParamType.repo
sort?
optionalsort:"created"|"updated"
定义于: types/platform/pull_request.ts:105
排序依据
默认值
"created"
- created: 按创建时间排序
- updated: 按更新时间排序state?
optionalstate:"all"|"open"|"closed"
定义于: types/platform/pull_request.ts:92
拉取请求状态
默认值
"open"
- open: 打开的拉取请求
- closed: 已关闭的拉取请求
- all: 所有拉取请求