diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index b55eaf4..3d93818 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -40,3 +40,17 @@ jobs: working-directory: ./src/ - name: Check pre-commit run: pre-commit run --all-files + auto_merge: + name: Auto merge + runs-on: ubuntu-latest + needs: tests + if: >- + github.event.pull_request + && github.event.pull_request.merged == false + && ( + github.event.pull_request.user.login == "crocmagnon-pr[bot]" + || github.event.pull_request.user.login == "pre-commit-ci[bot]" + ) + steps: + - name: Auto merge + run: gh pr merge ${{github.event.pull_request.number}} --delete-branch --rebase