From 4bfb705c55339bf4bd65bbf7306f395bcb13b412 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 1 Apr 2022 19:35:39 +0000 Subject: [PATCH] chore(release): 1.2.0 [skip ci] # [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)) --- CHANGELOG.md | 7 +++++++ dist/index.js | 5 ++++- package.json | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7dd0af4..4172d98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/dist/index.js b/dist/index.js index b5decc1..ea455cd 100644 --- a/dist/index.js +++ b/dist/index.js @@ -11682,6 +11682,7 @@ const trackedChanges = { "update": "!" } +const expandDetailsComment = core.getBooleanInput('expand-comment'); const myToken = core.getInput('github-token'); const octokit = github.getOctokit(myToken); @@ -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.' + let openDetails = expandDetailsComment ? "open" : "" + let output = showFileName ? `\`${inputFile}\`` : "" output += ` -
${summary} +
${summary} ${message}
diff --git a/package.json b/package.json index 110ccd4..0b3b55a 100644 --- a/package.json +++ b/package.json @@ -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": {