[gitlab-releases] Return milestone start and end date with each version
This is a feature request for https://gitlab.com/gitlab-org/ruby/gems/gitlab-releases.
It would be very helpful if each version also included the start and end of the milestone in the response.
Like, if at least active_version
and current_version
returned something like:
> GitlabReleases.active_version
=> "16.6"=>{"release_date": "2023-11-16", "milestone_start": "2023-10-18", "milestone_end": "2023-11-10"}
Is there any other way of calculating the milestone start and ending dates? Because my head hurts every time I do the math :/
After an hour or so, I came up with the following:
- Milestone start:
previous_release_date - 5 days
(Saturday before the previous release day) - Milestone end:
current_release_date - 6 days
(Friday before the current release day)
PS. I'm wondering, how did we create the milestones dates with the recent milestones in the first place https://gitlab.com/groups/gitlab-org/-/milestones?sort=due_date_desc? What this manual?