跳到主要内容

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
}
}
})

请求参数​

属性类型默认值必须说明
projectIdstring是仓库id
search.keywordstring否筛选条件(和funId二选一)
search.gitSizeint否gitlab接口每次查询多少条信息
search.sumint否每页展示数量(pg.getSize())
search.startSumint否当前页最后的数量(((pg.getPage() + 1) * pg.getSize())
search.endSumint否当前页开始最低的数量((pg.getPage() * pg.getSize()))
search.funIdString否功能点id(和keyword二选一)
pg.pageint否展示第几页
pg.sizeint否每页多少数据

返回​

查询出来的列表

    [
{
"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