Get commits between two dates
It seems like there's no way to use the commits API to get a vector of commits between dates. The Gitlab API supports is thusly:
https://gitlab.com/api/v4/projects/projecty%2Fpath/repository/commits/?since=2021-04-06T15:16:15.000-05:00&until=2021-04-06T21:30:07.000+00:00
I tried just putting ?since=2021-04-06T15:16:15.000-05:00&until=2021-04-06T21:30:07.000+00:00
in as the commit ref, but it ends up being URL encoded. I suspect I have to add it as a parameter, right?
I've been reading the code in rust-gitlab/src/api/projects/repository/commits/commit.rs
to try and understand it. If I understand correctly, I should add a since
and until
parameter, and allow a None
commit reference if either exist? Does that make sense?
Edited by William Dillon