From 8b04787d62f5053d281d6d33776225cf5de8dffa Mon Sep 17 00:00:00 2001 From: Hari <73809867+harivansh-afk@users.noreply.github.com> Date: Wed, 1 Apr 2026 14:33:21 -0400 Subject: [PATCH] add auto-merge workflow for all PRs (#24) --- .github/workflows/auto-merge.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/auto-merge.yml diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml new file mode 100644 index 0000000..81c596c --- /dev/null +++ b/.github/workflows/auto-merge.yml @@ -0,0 +1,21 @@ +name: auto-merge + +on: + pull_request: + types: [opened, synchronize, reopened] + branches: [main] + +permissions: + contents: write + pull-requests: write + +jobs: + enable-auto-merge: + runs-on: ubuntu-latest + steps: + - name: Enable auto-merge + run: gh pr merge --auto --squash "$PR_NUMBER" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + PR_NUMBER: ${{ github.event.pull_request.number }}