根据时间范围调用gitLab接口查询
最近使用的gitlab的相关接口
1.根据时间和人员查询,实际上人并不好用
curl --header "Private-Token: YOUR_PRIVATE_TOKEN" "https://gitlab.example.com/api/v4/projects/<project_id>/repository/commits?author_username=<username>&since=2024-01-01T00:00:00Z&until=2024-05-31T23:59:59Z"
2. 根据项目名字查询对应的project_id
curl --header "Private-Token: YOUR_PRIVATE_TOKEN" "https://gitlab.example.com/api/v4/projects?search=project_name_or_path"
3.找到具体提交的代码
https://gitlab.example.com/api/v4/projects/<project_id>/repository/commits/25d7038338ee2643aed4391c88444680166cd5cc/diff
4.使用GitLab API来获取成员的所有项目
https://gitlab.example.com/api/v4/users/<user_id>/projects