-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
When using plan output file as source, -patch option seems to create a new comment every time #1454
Comments
suzuki-shunsuke
changed the title
When using plan output file as source, -path option seems to create a new comment every time
When using plan output file as source, -patch option seems to create a new comment every time
Nov 1, 2024
You should use #!/usr/bin/env bash
set -u
tfcmt plan -patch -- terraform plan 2>&1 | tee result.txt
code=${PIPESTATUS[0]}
tfcmt --output plan.md plan -- bash -c "cat result.txt && exit "$code"" |
ah, yes, you are correct; I will try that. |
I can confirm that it worked, thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tfcmt version
4.14.0
Environment
Overview
when using this strategy :
tfcmt seems to post new comments every time. This does not happen when running plan directly without
--output
as a parameter using the same version.How to reproduce
in the description
Debug output
Expected behaviour
to update the last comments
Actual behaviour
it creates a comment every time
Important Factoids
related to : (#1412)
Note
No response
The text was updated successfully, but these errors were encountered: