From 4c751d85115df00f3438c7c696bdf16cfa9709d2 Mon Sep 17 00:00:00 2001 From: logan-nc <6198372+logan-nc@users.noreply.github.com> Date: Mon, 17 Aug 2026 17:41:18 -0400 Subject: [PATCH] CI - REFACTOR - Remove the auto-merge label wrapper workflow The workflow only called `gh pr merge --auto`, which is GitHub's own auto-merge. With `allow_auto_merge` enabled on the repository, the merge box button offers the same capability directly, so the label added a second path to arming a merge without adding any function. It also widened access slightly: the workflow merged using GITHUB_TOKEN, so anyone able to apply a label could arm auto-merge even without permission to merge. The button requires write access. The `auto-merge` label has been deleted; no open pull request carried it. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/auto-merge.yaml | 33 ------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 .github/workflows/auto-merge.yaml diff --git a/.github/workflows/auto-merge.yaml b/.github/workflows/auto-merge.yaml deleted file mode 100644 index 5ca1fbc30..000000000 --- a/.github/workflows/auto-merge.yaml +++ /dev/null @@ -1,33 +0,0 @@ -name: Auto-Merge - -on: - pull_request: - types: [labeled, unlabeled] - branches: - - main - - develop - -permissions: - contents: write - pull-requests: write - -jobs: - enable-auto-merge: - name: Enable auto-merge - if: github.event.action == 'labeled' && github.event.label.name == 'auto-merge' - runs-on: ubuntu-latest - steps: - - name: Enable auto-merge (merge commit) - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: gh pr merge --auto --merge "${{ github.event.pull_request.number }}" --repo "${{ github.repository }}" - - disable-auto-merge: - name: Disable auto-merge - if: github.event.action == 'unlabeled' && github.event.label.name == 'auto-merge' - runs-on: ubuntu-latest - steps: - - name: Disable auto-merge - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: gh pr merge --disable-auto "${{ github.event.pull_request.number }}" --repo "${{ github.repository }}"