Include approved_at timestamp in approvals API response

What does this MR do and why?

Include approved_at timestamp in approvals API response

Adds approved_at (approval.created_at) timestamp to the API::Entities::Approvals grape entity for the REST API.

Currently we only return who approved the MR but not when they did.

Changelog: added

How to set up and validate locally

  1. Create an MR in gdk
  2. Approve it
  3. Generate a token with all permissions by clicking on your profile picture in the menu > preferences > access tokens.
  4. Copy the access token
  5. Get the project.id from the console
  6. Get the merge_request.iid from the console
  7. Update the following bash prompt with the project id, merge request iid, and access token, then submit it.
curl "https://gdk.test:3443/api/v4/projects/2/merge_requests/6/approval_state" -H 'PRIVATE-TOKEN: YOURTOKEN'

This should now return the approved_at value within the approved_by object

Merge request reports

Loading