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
- Create an MR in gdk
- Approve it
- Generate a token with all permissions by clicking on your profile picture in the menu > preferences > access tokens.
- Copy the access token
- Get the
project.idfrom the console - Get the
merge_request.iidfrom the console - 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