From 5a40cdcd26e0ff211f369c234f81031e0de40388 Mon Sep 17 00:00:00 2001 From: Bryant Biggs Date: Mon, 22 Nov 2021 10:01:21 -0500 Subject: [PATCH 1/2] fix: update CI/CD process to enable auto-release workflow --- .github/workflows/release.yml | 1 + .pre-commit-config.yaml | 2 +- .releaserc.json | 12 ++++++++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 75567201..141937d8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,7 @@ name: Release on: + workflow_dispatch: push: branches: - main diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 65c0f394..5ecfe998 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: # language: system # pass_filenames: false - repo: https://github.com/antonbabenko/pre-commit-terraform - rev: v1.55.0 + rev: v1.58.0 hooks: - id: terraform_fmt - id: terraform_validate diff --git a/.releaserc.json b/.releaserc.json index ca52a586..6e39031c 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -7,12 +7,20 @@ "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", - "@semantic-release/github", + [ + "@semantic-release/github", + { + "successComment": + "This ${issue.pull_request ? 'PR is included' : 'issue has been resolved'} in version ${nextRelease.version} :tada:", + "labels": false, + "releasedLabels": false + } + ], [ "@semantic-release/changelog", { "changelogFile": "CHANGELOG.md", - "changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file" + "changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file." } ], [ From 6f80e39a8aa87c43f65baa905922087382446751 Mon Sep 17 00:00:00 2001 From: Bryant Biggs Date: Mon, 22 Nov 2021 10:43:08 -0500 Subject: [PATCH 2/2] fix: correct pre-commit hook for terraform-docs --- .pre-commit-config.yaml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5ecfe998..b0e03fc8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,21 +1,4 @@ repos: -# - repo: local # @todo: move to pre-commit-terraform, add support for multiple module dirs, and run before terraform_docs -# hooks: -# - id: terraform_wrapper -# name: "Terraform module wrapper - root" -# entry: /Users/Bob/Sites/terraform-aws-modules/scripts/generate-terraform-wrappers.sh --overwrite -# language: system -# pass_filenames: false -# - id: terraform_wrapper -# name: "Terraform module wrapper - object" -# entry: /Users/Bob/Sites/terraform-aws-modules/scripts/generate-terraform-wrappers.sh --module-dir modules/object --overwrite -# language: system -# pass_filenames: false -# - id: terraform_wrapper -# name: "Terraform module wrapper - notification" -# entry: /Users/Bob/Sites/terraform-aws-modules/scripts/generate-terraform-wrappers.sh --module-dir modules/notification --overwrite -# language: system -# pass_filenames: false - repo: https://github.com/antonbabenko/pre-commit-terraform rev: v1.58.0 hooks: @@ -43,4 +26,3 @@ repos: rev: v4.0.1 hooks: - id: check-merge-conflict - - id: end-of-file-fixer