{{< details >}}

  • Tier: 专业版, 旗舰版
  • Offering: JihuLab.com, 私有化部署

{{< /details >}}

获取群组最近创建的议题数量

GET /analytics/group_activity/issues_count

参数:

属性 类型 必需 描述
group_path string yes 群组路径

示例请求:

curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/analytics/group_activity/issues_count?group_path=gitlab-org"

示例响应:

{ "issues_count": 10 }

获取群组最近创建的合并请求数量

GET /analytics/group_activity/merge_requests_count

参数:

属性 类型 必需 描述
group_path string yes 群组路径

示例请求:

curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/analytics/group_activity/merge_requests_count?group_path=gitlab-org"

示例响应:

{ "merge_requests_count": 10 }

获取群组最近添加的成员数量

GET /analytics/group_activity/new_members_count

参数:

属性 类型 必需 描述
group_path string yes 群组路径

示例请求:

curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/analytics/group_activity/new_members_count?group_path=gitlab-org"

示例响应:

{ "new_members_count": 10 }