hashicorp / terraform-github-actions

Terraform GitHub Actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow tf_actions_comment: true - not just for failure but for success too

adampeklay opened this issue · comments

Hi,

Can we please add some functionality tf_actions_comment: true for tf_actions_subcommand: plan?

Would be nice if you can choose to:
(1) comment upon failure
(2) comment upon success
(3) both

This would be great functionality for a PR builder so the output of terraform plan can be commented in a pull request.

I can't seem to figure out how to get the output from tf_actions_output into a comment on the pull request & I have been manually running terraform plan and creating a comment in my pull requests.

Perhaps I missed something obvious though, however please let me know what you think.

Thanks!

This may be a private repo PAT issue. I see the comment on my personal repo (public) but at work I can't get it to comment. I'm going to close this issue and look at my PAT perm scope in my work GH Org. Going to close this out 😄 🤦‍♂