[Performance Analytics] Api for 'project' report
Api for 'project' report
Report api path *namespace_id/*project_id/-/analytics/performance_analytics/report.json
params:
- branch_name 分支名称(只影响commit统计)
- leaderboard_type 榜单类型 commits_pushed issues_closed merge_requests_merged
- start_date 查询开始日期
- end_date 查询结束日期
- page 分页码 默认为1
- sort 排序列 username commits_pushed issues_closed...
- direction 排序方向 asc增序 desc降序
return data:
[
{
"user": {
"fullname": "Linjie Zhang",
"username": "zhanglinjie",
"user_web_url": "/zhanglinjie",
"avatar": "/uploads/-/system/user/avatar/290/avatar.png?width=30"
},
"commits_pushed": 0,
"issues_closed": 0,
"issues_created": 0,
"merge_requests_approved": 0,
"merge_requests_closed": 0,
"merge_requests_created": 0,
"merge_requests_merged": 0,
"notes_created": 0,
}
]
Report csv api *namespace_id/*project_id/-/analytics/performance_analytics/report.csv
params:
- branch_name 分支名称(只影响commit统计)
- start_date 查询开始日期
- end_date 查询结束日期
由 Linjie Zhang 编辑于