Skip to content

Commit

Permalink
chore(release): 1.2.0 [skip ci]
Browse files Browse the repository at this point in the history
# [1.2.0](v1.1.0...v1.2.0) (2022-04-01)

### Features

* adding comment block expand flag ([55d2573](55d2573))
  • Loading branch information
semantic-release-bot committed Apr 1, 2022
1 parent 55d2573 commit 4bfb705
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [1.2.0](https://github.com/liatrio/terraform-change-pr-commenter/compare/v1.1.0...v1.2.0) (2022-04-01)


### Features

* adding comment block expand flag ([55d2573](https://github.com/liatrio/terraform-change-pr-commenter/commit/55d25736974196a554e7ed4d864224b54af0123d))

# [1.1.0](https://github.com/liatrio/terraform-change-pr-commenter/compare/v1.0.2...v1.1.0) (2022-02-23)


Expand Down
5 changes: 4 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11682,6 +11682,7 @@ const trackedChanges = {
"update": "!"
}

const expandDetailsComment = core.getBooleanInput('expand-comment');
const myToken = core.getInput('github-token');
const octokit = github.getOctokit(myToken);

Expand Down Expand Up @@ -11719,10 +11720,12 @@ function fileComment(inputFile, showFileName) {
changes.filter(obj => obj.change.actions[0] === "update").length + ' to change, ' +
changes.filter(obj => obj.change.actions[0] === "delete").length + ' to destroy.</b>'

let openDetails = expandDetailsComment ? "open" : ""

let output = showFileName ? `\`${inputFile}\`` : ""

output += `
<details><summary>${summary}</summary>
<details ${openDetails}><summary>${summary}</summary>
${message}
</details>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "terraform-change-pr-commenter",
"version": "1.1.0",
"version": "1.2.0",
"description": "GitHub Action to read changes from Terraform plan JSON, summarize changes, and post them in a GitHub Pull Request Comment",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 4bfb705

Please sign in to comment.