最近使用的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.