manual-approval icon indicating copy to clipboard operation
manual-approval copied to clipboard

Have some steps output as a comment

Open ko5tas opened this issue 2 years ago • 4 comments

Add a new field named "comment" where the bot would add the output of a defined step as a comment. This would happen before replying with yes/no for approvals.

For example, A worflow does some tflinting and the approver wants to see tflint output and "terraform plan" output before allowing the workflow to proceed with the "terraform apply".

ko5tas avatar Oct 18 '22 13:10 ko5tas

That's a really great idea, I'll add this to the backlog!

trstringer avatar Oct 27 '22 19:10 trstringer

+1

omartushevskyi avatar Nov 10 '22 16:11 omartushevskyi

Is it possible to render temporary file / step output to the issue body? My usecase is rendering Terraform plan in the issue body for review. Previously I can render it to a PR comment but not sure how to do this with this manual approval plugin

alex-ld avatar May 04 '23 05:05 alex-ld

@alex-ld As a workaround I added another step to my job where I only run terraform show -no-color plan.out (plan.out is from my previous plan step)

then I use this step's stdout in the message body:

           <details><summary>Show Plan</summary>


            ```terraform


            ${{ steps.show.outputs.stdout }}


            ```

            </details>

b3nk3 avatar Aug 30 '23 23:08 b3nk3