I've set up an environment in Azure Pipelines, containing a manual approval step. When the pipeline reaches the approval step, I get the choice to either approve, or reject the deployment with an optional comment included.
When I've taken and acted upon my decision, to either approve or reject the deployment, and added a comment for my decision, I can go back and look at the pipeline run to see the comment and if it was approved or rejected, as shown below:
Is there any way, to retrieve this comment inside of the current run of the pipeline, to be able to use it in a pipeline task?
As soon as someone has approved/rejected with a comment, I need to be able to retrieve this comment further down the pipeline.