From f55b8387f1982c628496c679546ade8c0a70122e Mon Sep 17 00:00:00 2001 From: Erik Osterman Date: Thu, 16 May 2024 19:34:56 -0500 Subject: [PATCH] delete GitHub scaffolding for terraform --- templates/terraform/.github/auto-release.yml | 54 ------------- templates/terraform/.github/mergify.yml | 76 ------------------- templates/terraform/.github/renovate.json | 14 ---- .../workflows/feature-branch-chatops.yml | 16 ---- .../.github/workflows/feature-branch.yml | 19 ----- .../.github/workflows/release-branch.yml | 23 ------ .../.github/workflows/release-published.yml | 14 ---- .../terraform/.github/workflows/scheduled.yml | 17 ----- 8 files changed, 233 deletions(-) delete mode 100644 templates/terraform/.github/auto-release.yml delete mode 100644 templates/terraform/.github/mergify.yml delete mode 100644 templates/terraform/.github/renovate.json delete mode 100644 templates/terraform/.github/workflows/feature-branch-chatops.yml delete mode 100644 templates/terraform/.github/workflows/feature-branch.yml delete mode 100644 templates/terraform/.github/workflows/release-branch.yml delete mode 100644 templates/terraform/.github/workflows/release-published.yml delete mode 100644 templates/terraform/.github/workflows/scheduled.yml diff --git a/templates/terraform/.github/auto-release.yml b/templates/terraform/.github/auto-release.yml deleted file mode 100644 index cc9bf057..00000000 --- a/templates/terraform/.github/auto-release.yml +++ /dev/null @@ -1,54 +0,0 @@ -name-template: 'v$RESOLVED_VERSION' -tag-template: '$RESOLVED_VERSION' -version-template: '$MAJOR.$MINOR.$PATCH' -version-resolver: - major: - labels: - - 'major' - minor: - labels: - - 'minor' - - 'enhancement' - patch: - labels: - - 'auto-update' - - 'patch' - - 'fix' - - 'bugfix' - - 'bug' - - 'hotfix' - default: 'minor' -filter-by-commitish: true - -categories: -- title: '🚀 Enhancements' - labels: - - 'enhancement' - - 'patch' -- title: '🐛 Bug Fixes' - labels: - - 'fix' - - 'bugfix' - - 'bug' - - 'hotfix' -- title: '🤖 Automatic Updates' - labels: - - 'auto-update' - -change-template: | -
- $TITLE @$AUTHOR (#$NUMBER) - - $BODY -
- -template: | - $CHANGES - -replacers: -# Remove irrelevant information from Renovate bot -- search: '/(?<=---\s)\s*^#.*(Renovate configuration|Configuration)(?:.|\n)*?This PR has been generated .*/gm' - replace: '' -# Remove Renovate bot banner image -- search: '/\[!\[[^\]]*Renovate\][^\]]*\](\([^)]*\))?\s*\n+/gm' - replace: '' diff --git a/templates/terraform/.github/mergify.yml b/templates/terraform/.github/mergify.yml deleted file mode 100644 index 148d85c0..00000000 --- a/templates/terraform/.github/mergify.yml +++ /dev/null @@ -1,76 +0,0 @@ -# https://docs.mergify.io/conditions.html -# https://docs.mergify.io/actions.html -pull_request_rules: -- name: "approve automated PRs that have passed checks" - conditions: - - "author~=^(cloudpossebot|renovate\\[bot\\])$" - - "-closed" - - "head~=^(auto-update|renovate)/.*" - - "check-success=test/bats" - - "check-success=test/readme" - - "check-success=test/terratest" - - "check-success=validate-codeowners" - - or: - - "base=master" - - "base=main" - - "base~=^release/v\\d{1,2}$" - - actions: - review: - type: "APPROVE" - bot_account: "cloudposse-mergebot" - message: "We've automatically approved this PR because the checks from the automated Pull Request have passed." - -- name: "merge automated PRs when approved and tests pass" - conditions: - - "author~=^(cloudpossebot|renovate\\[bot\\])$" - - "-closed" - - "head~=^(auto-update|renovate)/.*" - - "check-success=test/bats" - - "check-success=test/readme" - - "check-success=test/terratest" - - "check-success=validate-codeowners" - - "#approved-reviews-by>=1" - - "#changes-requested-reviews-by=0" - - "#commented-reviews-by=0" - - or: - - "base=master" - - "base=main" - - "base~=^release/v\\d{1,2}$" - - actions: - merge: - method: "squash" - -- name: "delete the head branch after merge" - conditions: - - "merged" - actions: - delete_head_branch: {} - -- name: "ask to resolve conflict" - conditions: - - "conflict" - - "-closed" - actions: - comment: - message: "This pull request is now in conflict. Could you fix it @{{author}}? 🙏" - -- name: "remove outdated reviews" - conditions: - - or: - - "base=master" - - "base=main" - - "base~=^release/v\\d{1,2}$" - actions: - dismiss_reviews: - changes_requested: true - approved: true - message: "This Pull Request has been updated, so we're dismissing all reviews." - -- name: "close Pull Requests without files changed" - conditions: - - "#files=0" - actions: - close: - message: "This pull request has been automatically closed by Mergify because there are no longer any changes." diff --git a/templates/terraform/.github/renovate.json b/templates/terraform/.github/renovate.json deleted file mode 100644 index 909df094..00000000 --- a/templates/terraform/.github/renovate.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": [ - "config:base", - ":preserveSemverRanges", - ":rebaseStalePrs" - ], - "baseBranches": ["main"], - "labels": ["auto-update"], - "dependencyDashboardAutoclose": true, - "enabledManagers": ["terraform"], - "terraform": { - "ignorePaths": ["**/context.tf"] - } -} diff --git a/templates/terraform/.github/workflows/feature-branch-chatops.yml b/templates/terraform/.github/workflows/feature-branch-chatops.yml deleted file mode 100644 index 9abfc612..00000000 --- a/templates/terraform/.github/workflows/feature-branch-chatops.yml +++ /dev/null @@ -1,16 +0,0 @@ ---- -name: feature-branch-chatops -on: - issue_comment: - types: [created] - -permissions: - pull-requests: write - id-token: write - contents: write - -jobs: - terraform-module: - uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/feature-branch-chatops.yml@main - secrets: - github_access_token: ${{ secrets.REPO_ACCESS_TOKEN }} diff --git a/templates/terraform/.github/workflows/feature-branch.yml b/templates/terraform/.github/workflows/feature-branch.yml deleted file mode 100644 index 8faa955f..00000000 --- a/templates/terraform/.github/workflows/feature-branch.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -name: feature-branch -on: - pull_request: - branches: - - main - - release/** - types: [opened, synchronize, reopened, labeled, unlabeled] - -permissions: - pull-requests: write - id-token: write - contents: write - -jobs: - terraform-module: - uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/feature-branch.yml@main - secrets: - github_access_token: ${{ secrets.REPO_ACCESS_TOKEN }} diff --git a/templates/terraform/.github/workflows/release-branch.yml b/templates/terraform/.github/workflows/release-branch.yml deleted file mode 100644 index b30901ea..00000000 --- a/templates/terraform/.github/workflows/release-branch.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -name: release-branch -on: - push: - branches: - - main - - release/** - paths-ignore: - - '.github/**' - - 'docs/**' - - 'examples/**' - - 'test/**' - - 'README.*' - -permissions: - contents: write - id-token: write - -jobs: - terraform-module: - uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/release-branch.yml@main - secrets: - github_access_token: ${{ secrets.REPO_ACCESS_TOKEN }} diff --git a/templates/terraform/.github/workflows/release-published.yml b/templates/terraform/.github/workflows/release-published.yml deleted file mode 100644 index b31232b6..00000000 --- a/templates/terraform/.github/workflows/release-published.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: release-published -on: - release: - types: - - published - -permissions: - contents: write - id-token: write - -jobs: - terraform-module: - uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/release-published.yml@main diff --git a/templates/terraform/.github/workflows/scheduled.yml b/templates/terraform/.github/workflows/scheduled.yml deleted file mode 100644 index 163be0b4..00000000 --- a/templates/terraform/.github/workflows/scheduled.yml +++ /dev/null @@ -1,17 +0,0 @@ ---- -name: scheduled -on: - workflow_dispatch: { } # Allows manually trigger this workflow - schedule: - - cron: "0 3 * * *" - -permissions: - pull-requests: write - id-token: write - contents: write - -jobs: - scheduled: - uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/scheduled.yml@main - secrets: - github_access_token: ${{ secrets.REPO_ACCESS_TOKEN }}