Skip to content
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: additional feature additions #62

Merged
merged 1 commit into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/action-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
node-version: "20"
- run: yarn install
- run: yarn run build

Expand All @@ -26,10 +26,14 @@ jobs:
uses: ./
with:
json-file: test-data/tf_test.json
expand-comment: 'true'
include-plan-job-summary: 'true'
expand-comment: "true"
include-plan-job-summary: "true"
comment-header: "BIG HEADER"
comment-footer: "BIG FOOTER"
include-workflow-link: "true"
quiet: "true"

- name: Test PR Commenter with no changes
uses: ./
with:
with:
json-file: test-data/tf_nochanges.json
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
name: Release
on:
push:
branches: [ main ]
branches: [main]
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
node-version: "20"

- name: Install Dependencies
run: yarn install

- name: yarn build and semantic-release
run: yarn run build && npx semantic-release
env:
Expand Down
28 changes: 22 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Terraform Change PR Commenter
name: Terraform Change PR Commenter v2
description: Parse changes from Terraform Plan JSON and post them for PR review
branding:
icon: 'git-pull-request'
color: 'green'
icon: "git-pull-request"
color: "green"
inputs:
json-file:
description: File location for the Terraform Plan JSON file
Expand All @@ -11,15 +11,31 @@ inputs:
github-token:
description: GitHub Token
required: false
default: '${{github.token}}'
default: "${{github.token}}"
expand-comment:
description: If true, expand the details comment by default
required: false
default: 'false'
default: "false"
include-plan-job-summary:
description: If true, add the results of the plan to the workflow job summary
required: false
default: 'false'
default: "false"
comment-header:
description: Header to use for the comment
required: false
default: "Terraform Plan Changes"
comment-footer:
description: Footer to use for the comment
required: false
default: ""
include-workflow-link:
description: If true, include a link to the workflow in the comment
required: false
default: false
quiet:
description: Skips the comment if there are no changes
required: false
default: false
runs:
using: node20
main: dist/index.js
Loading