From c4fbcbcc70eae95f9efbab2765cb16b96180e980 Mon Sep 17 00:00:00 2001 From: Wesley B <62723358+wesleyboar@users.noreply.github.com> Date: Wed, 6 Nov 2024 17:16:57 -0600 Subject: [PATCH] chore: remove auto-release infrastructure (#424) It causes me more work than it saves. I'll restore later if I think I can improve it. --- .github/pr-labeler.yml | 14 ----- .github/release-drafter.yml | 59 ------------------- .github/workflows/changelog-updater.yaml | 30 ---------- .../workflows/only-commit-source-to-trunk.yml | 19 ------ .../workflows/pr-label-assigner-manager.yaml | 18 ------ .github/workflows/pr-label-assigner.yaml | 22 ------- .../workflows/pr-label-checker-manager.yaml | 13 ---- .github/workflows/pr-label-checker.yaml | 26 -------- .github/workflows/release-drafter.yaml | 18 ------ 9 files changed, 219 deletions(-) delete mode 100644 .github/pr-labeler.yml delete mode 100644 .github/release-drafter.yml delete mode 100644 .github/workflows/changelog-updater.yaml delete mode 100644 .github/workflows/only-commit-source-to-trunk.yml delete mode 100644 .github/workflows/pr-label-assigner-manager.yaml delete mode 100644 .github/workflows/pr-label-assigner.yaml delete mode 100644 .github/workflows/pr-label-checker-manager.yaml delete mode 100644 .github/workflows/pr-label-checker.yaml delete mode 100644 .github/workflows/release-drafter.yaml diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml deleted file mode 100644 index 4e1f9ce10..000000000 --- a/.github/pr-labeler.yml +++ /dev/null @@ -1,14 +0,0 @@ -feature: ['feat/*', 'feature/*'] -enhancement: ['enhance/*', 'enhancement/*'] -fix: ['fix/*', 'bug/*', 'bugfix/*', 'hotfix/*'] -changes: ['change/*', 'changes/*', 'changed/*'] -performance: ['perf/*', 'performance/*'] -refactor: ['refactor/*'] -devops: ['build/*', 'ops/*', 'devops/*'] -deprecates: ['deprecate/*', 'deprecates/*', 'deprecated/*'] -removes: ['remove/*', 'removes/*', 'removed/*', 'delete/*', 'deletes/*', 'deleted/*'] -security: ['secure/*', 'secures/*', 'secured/*', 'security/*'] -documentation: ['docs/*', 'documentation/*'] -dependencies: ['deps/*', 'dependencies/*'] -chore: ['chore/*'] -style: ['style/*'] diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index ee7d1ffbc..000000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,59 +0,0 @@ -# This release drafter follows the conventions -# from https://keepachangelog.com - -name-template: 'v$RESOLVED_VERSION' -tag-template: 'v$RESOLVED_VERSION' -template: | - $CHANGES - - **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION -categories: - # labels should include values of .github/pr-labeler.yaml - - title: 🚀 Added - labels: - - feature - - enhancement - - title: 🪲 Fixed - labels: - - fix - - title: ⚠️ Changed - labels: - - changes - - performance - - refactor - - devops - - test - - title: ⛔️ Deprecated - labels: - - deprecates - - title: 🗑 Removed - labels: - - removes - - title: 🔐 Security - labels: - - security - - title: 📓 Documentation - labels: - - documentation - - title: 🧩 Updated - labels: - - dependencies - collapse-after: 5 - -change-template: '- $TITLE (#$NUMBER)' -change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. -version-resolver: - major: - labels: - - major - minor: - labels: - - minor - patch: - labels: - - patch - default: patch - -exclude-labels: - - style - - chore diff --git a/.github/workflows/changelog-updater.yaml b/.github/workflows/changelog-updater.yaml deleted file mode 100644 index c1d108dce..000000000 --- a/.github/workflows/changelog-updater.yaml +++ /dev/null @@ -1,30 +0,0 @@ -# To auto-update changelog on release -# SEE: https://tiagomichaelsousa.dev/articles/stop-writing-your-changelogs-manually -name: Changelog Updater - -on: - release: - types: - - released - -jobs: - update: - name: Update Changelog - runs-on: ubuntu-latest - - steps: - - name: Checkout Code - uses: actions/checkout@v2 - - - name: Update Changelog - uses: stefanzweifel/changelog-updater-action@v1 - with: - latest-version: ${{ github.event.release.name }} - release-notes: ${{ github.event.release.body }} - - - name: Commit Updated Changelog - uses: stefanzweifel/git-auto-commit-action@v4 - with: - branch: test - commit_message: 'docs(changelog): update changelog' - file_pattern: CHANGELOG.md diff --git a/.github/workflows/only-commit-source-to-trunk.yml b/.github/workflows/only-commit-source-to-trunk.yml deleted file mode 100644 index f156d8f26..000000000 --- a/.github/workflows/only-commit-source-to-trunk.yml +++ /dev/null @@ -1,19 +0,0 @@ -# Do not let built-in-place files be comitted to `main` branch -name: Lint -on: - pull_request: - branches: - - epic/v3 - paths: - - '**.css' -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Set up Node - uses: actions/setup-node@v4 - with: - node-version: '20.x' - - name: Lint directories - run: npm run lint:dirs diff --git a/.github/workflows/pr-label-assigner-manager.yaml b/.github/workflows/pr-label-assigner-manager.yaml deleted file mode 100644 index ac81f5764..000000000 --- a/.github/workflows/pr-label-assigner-manager.yaml +++ /dev/null @@ -1,18 +0,0 @@ -# To assign labels when PR is opened -# FAQ: This simple wrapper exists because original author failed other solutions -name: PR Label Asssigner Manager (on Open) -on: - pull_request: - types: - - opened - - reopened # for testing - -jobs: - assign_label: - name: Assign - uses: ./.github/workflows/pr-label-assigner.yaml - - check_labels_after_assign: - needs: [assign_label] - name: Check - uses: ./.github/workflows/pr-label-checker.yaml diff --git a/.github/workflows/pr-label-assigner.yaml b/.github/workflows/pr-label-assigner.yaml deleted file mode 100644 index b0aca0d92..000000000 --- a/.github/workflows/pr-label-assigner.yaml +++ /dev/null @@ -1,22 +0,0 @@ -# Assigns labels based on branch name prefix -# SEE: https://tiagomichaelsousa.dev/articles/stop-writing-your-changelogs-manually -name: PR Label Assigner -on: - workflow_call: - -permissions: - contents: read - -jobs: - pr_label_assigner: - name: via Branch Name - permissions: - contents: read # for TimonVS/pr-labeler-action to read config file - pull-requests: write # for TimonVS/pr-labeler-action to add labels in PR - runs-on: ubuntu-latest - - steps: - - uses: TimonVS/pr-labeler-action@v4 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - configuration-path: .github/pr-labeler.yml # optional, .github/pr-labeler.yml is the default value diff --git a/.github/workflows/pr-label-checker-manager.yaml b/.github/workflows/pr-label-checker-manager.yaml deleted file mode 100644 index 0f72077d3..000000000 --- a/.github/workflows/pr-label-checker-manager.yaml +++ /dev/null @@ -1,13 +0,0 @@ -# To check labels when they are added or removed -# FAQ: This simple wrapper exists to mirror pr-label-assigner-manager.yaml -name: PR Label Checker Manager (on Label) -on: - pull_request: - types: - - labeled - - unlabeled # for testing - -jobs: - check_labels: - name: Check - uses: ./.github/workflows/pr-label-checker.yaml diff --git a/.github/workflows/pr-label-checker.yaml b/.github/workflows/pr-label-checker.yaml deleted file mode 100644 index 7353725df..000000000 --- a/.github/workflows/pr-label-checker.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# Checks whether labels meet expectations -# SEE: https://tiagomichaelsousa.dev/articles/stop-writing-your-changelogs-manually -name: PR Label Checker -on: - workflow_call: - -jobs: - check_semver_labels: - name: for Semver Label - runs-on: ubuntu-latest - - steps: - - uses: danielchabr/pr-labels-checker@v3.1 - with: - hasSome: major,minor,patch - githubToken: ${{ secrets.GITHUB_TOKEN }} - - check_cc_labels: - name: for Conventional Commits Label - runs-on: ubuntu-latest - - steps: - - uses: danielchabr/pr-labels-checker@v3.1 - with: - hasSome: feature,enhancement,fix,changes,performance,refactor,devops,test,deprecates,removes,security,documentation,dependencies,chore,style # should match keys of .github/pr-labeler.yaml - githubToken: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-drafter.yaml b/.github/workflows/release-drafter.yaml deleted file mode 100644 index 113633e4f..000000000 --- a/.github/workflows/release-drafter.yaml +++ /dev/null @@ -1,18 +0,0 @@ -# SEE: https://tiagomichaelsousa.dev/articles/stop-writing-your-changelogs-manually -name: Release Drafter - -on: - push: - branches: - - main - -jobs: - update_release_draft: - name: Draft Release - runs-on: ubuntu-latest - - steps: - - name: Update Release Draft - uses: release-drafter/release-drafter@v5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}