我已经看到,在gitlabapi查询中,存在要获取提交的查询,使用的是从gitlabapi查询中获取提交的方法。我想获取某一特定日期的回复。
示例:我想获取存储库在2022-0418上提交的响应。我尝试了以下查询,但是&操作没有运行curl --头“私有令牌:”"https://gitlab.example.com/api/v4/projects/5/repository/commits?first_parent=true&“
如果我使用: curl --头“私有令牌:”"https://gitlab.example.com/api/v4/projects/5/repository/commits?first_parent=true&since=2022-04-18“,则会显示响应。
在这种情况下,也会显示稍后的提交日期。我只想看到2022-04-18的承诺。
发布于 2022-05-18 08:39:13
尝试指定,直到和,因为采用了ISO 8601格式。
要获得特定的一天,您需要指定一天期间,例如
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/repository/commits?first_parent=true&since=2022-04-18T00:00:00Z&until=2022-04-18T23:59:59Z"https://stackoverflow.com/questions/72285294
复制相似问题