From 7d9da0934948f14baab2fc9ba819091cbd2fca52 Mon Sep 17 00:00:00 2001 From: yuanchenglu Date: Tue, 28 Jul 2026 02:26:34 +0800 Subject: [PATCH] ci: auto-enable auto-merge on PR creation --- .github/workflows/auto-merge.yml | 14 ++++++++++++++ 1 file changed, 14 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 00000000..8ac98b31 --- /dev/null +++ b/.github/workflows/auto-merge.yml @@ -0,0 +1,14 @@ +name: auto-merge +on: + pull_request: + types: [opened, reopened, synchronize] +permissions: + pull-requests: write + contents: write +jobs: + enable: + runs-on: ubuntu-latest + steps: + - run: gh pr merge ${{ github.event.number }} --auto --squash + env: + GH_TOKEN: ${{ github.token }}