open.gitlab.projects.{projectId}.commits
条件分页查询某个仓库的提交记录
- 请求路由:
open.gitlab.projects.{projectId}.commits- 交互模型:
Request Stream条件分页查询某个仓库的提交记录
请求
RSocket.rr({
route: 'open.gitlab.projects.{projectId}.commits',
args: {
search: {
keyword: 111,
funId: ""
},
pg: {
page: 0,
size: 10
}
}
})
请求参数
| 属性 | 类型 | 默认值 | 必须 | 说明 |
|---|---|---|---|---|
| projectId | string | 是 | 仓库id | |
| search.keyword | string | 否 | 筛选条件(和funId二选一) | |
| search.gitSize | int | 否 | gitlab接口每次查询多少条信息 | |
| search.sum | int | 否 | 每页展示数量(pg.getSize()) | |
| search.startSum | int | 否 | 当前页最后的数量(((pg.getPage() + 1) * pg.getSize()) | |
| search.endSum | int | 否 | 当前页开始最低的数量((pg.getPage() * pg.getSize())) | |
| search.funId | String | 否 | 功能点id(和keyword二选一) | |
| pg.page | int | 否 | 展示第几页 | |
| pg.size | int | 否 | 每页多少数据 |
返回
查询出来的列表
[
{
"id": "a001d2c9c85c7a26be981361c6582d9f40897cf0",
"short_id": "a001d2c9",
"created_at": "2022-04-22T16:55:07.000+08:00",
"parent_ids": [
"ced073aa33bbc84c5b6ae7b42a95ac7df31eaf5e"
],
"title": "174-添加条件查询gitlab提交记录信息和查询单个提交的变更信息接口",
"message": "174-添加条件查询gitlab提交记录信息和查询单个提交的变更信息接口\n",
"author_name": "flh",
"author_email": "1848044476@qq.com",
"authored_date": "2022-04-22T16:55:07.000+08:00",
"committer_name": "flh",
"committer_email": "1848044476@qq.com",
"committed_date": "2022-04-22T16:55:07.000+08:00",
"web_url": "http://scm.aspiretop.com/taurus/taurus-compo/-/commit/a001d2c9c85c7a26be981361c6582d9f40897cf0",
"stats": {
"additions": 85,
"deletions": 10,
"total": 95
},
"taskId": "174",
"taskName": "测试主题31"
}
]
返回属性
taskId和taskName为自己组装的 文档地址:https://docs.gitlab.com/ee/api/commits.html#get-the-diff-of-a-commit