Skip to content

Commit

Permalink
retry
Browse files Browse the repository at this point in the history
Signed-off-by: Rishav Dhar <19497993+rdhar@users.noreply.github.com>
  • Loading branch information
rdhar committed May 19, 2024
1 parent e153001 commit b270b9d
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions scripts/comment_tf_output.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,14 @@ ${process.env.tf_fmt}
const changed_lines = tfplan
.split("\n")
.filter((line) => line.startsWith(" # "))
.map((line) => line.slice(4))
.substring(0, 12);
// Limit the number of changed_lines characters to 12000.
// const changed_lines_str = changed_lines.join("\n");
// if (changed_lines_str.length > 12000) {
// changed_lines = changed_lines_str.substring(0, 12000).split("\n");
// changed_lines.push("…");
// }
.map((line) => line.slice(4));

// Create a collapsible summary of changes if any.
comment_outline = changed_lines.length
? `<details><summary>Outline of changes.</summary>
\`\`\`hcl
${changed_lines.join("\n")}
${changed_lines.join("\n").substring(0, 12)}
\`\`\`
</details>`
: "";
Expand Down

0 comments on commit b270b9d

Please sign in to comment.