-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: ability to hide previous comments & fix for summary issue #65
Conversation
feat: Always add to summary
feat: always add to summary
feat: always add to summary
…n/terraform-change-summary into always-add-to-summary
fix: moving pr comment code to pull request check and removing exits
…n/terraform-change-summary into always-add-to-summary
fix: adding bool flag to add comment instead of exiting early
…n/terraform-change-summary into minimize-prev-comment
…n/terraform-change-summary into minimize-prev-comment
…n/terraform-change-summary into minimize-prev-comment
…n/terraform-change-summary into minimize-prev-comment
feat: minimize previous comment
…n/terraform-change-summary into minimize-prev-comment
feat: Minimize prev comment
chore: removed action commiting the dist folder
minimize prev comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed and tested the fork locally. I have verified that these changes do in fact resolve issue #61 and the hide-previous-comments
feature works as intended. I agree with this approach for #57 as it maintains the comment history. Almost in favor of this defaulting to true
@DeWildeDaan Thank you for the well authored contribution.
# [1.6.0](v1.5.0...v1.6.0) (2024-09-03) ### Features * ability to hide previous comments & fix for summary issue ([#65](#65)) ([08ba12c](08ba12c))
🎉 This PR is included in version 1.6.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This PR addresses some issues created for this action:
fix: It addresses issue non-Pull Request workflows causing warning and no plan is posted to the job summary #61
My guess why this happened: on line 136 & 145 (https://github.com/liatrio/terraform-change-pr-commenter/blob/main/index.js#L131-L146) the process exits if certain conditions are met. This prevents the summary from being set.
By removing the
process.exit(0)
lines and using a 'createComment' flag that is set to false when those conditions are met, we eliminate this 'bug'.feat: It adds the feature to hide previous comments in relation to issue Update existing comment in place #57
As mentioned in that issue, updating comments in place isn't really the best idea. So I added the option to hide/minimize previous comment created by the action.
This feature is also added to the action-test.yml to test its functionality.
docs: I also took the liberty to updating the README.MD, adding all (new) inputs and adding a little 'OpenTofu' section + fixing a little typo.
(I'm using my forked version of this action and it works great 😄 )