robburger / terraform-pr-commenter

A GitHub Action that adds opinionated comments to a PR from Terraform fmt/init/plan output
MIT License
132 stars 65 forks source link

Option to update comments instead of deleting #35

Open hinaloe opened 2 years ago

hinaloe commented 2 years ago

Currently, this action POSTs the comment after DELETE if there is an existing plan or other comment. This makes it impossible to compare the differences in plans between those changes.

As in the "Create or Update Comment" action, the "PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}" can be used. When a comment is updated, the edit history of the comment is available.

Would you be willing to provide this as an option?