Provide approval timestamp in merge request approvals API
Problem to Solve
The Merge Request Approvals API provides information on who approved a merge request, but does not provide information on when
the merge request was approved.
Proposal
The timestamp information for approvals should be included in the approved_by section of the merge request approvals response. This will make it easier for external tools to understand when specific events are happening in the merge request.
Original Description
https://docs.gitlab.com/ee/api/merge_request_approvals.html#get-configuration-1 Hello there. We are using a self-hosted gitlab (GitLab Enterprise Edition 13.6.1-ee) and making use of it's api to extract some metrics. Currently I can't see a way to extract the `time to approve` of a merge request.A merge request contains created_at
, merged_at
but not approved_at
. Searching through the docs for extract approval information I still cannot find related date
fields, only who
approved or how many approvals are left
.
Is there a way to extract the time to approve
of a merge request or at least retrieve the history of events (with timestamp) so we can calculate how long it took to approve the merge request?
Thanks