add auto-merge workflow for all PRs (#24)
Some checks are pending
quality / changes (push) Waiting to run
quality / Flake Check (push) Blocked by required conditions
quality / Nix Format Check (push) Blocked by required conditions
quality / Deploy netty (push) Blocked by required conditions

This commit is contained in:
Hari 2026-04-01 14:33:21 -04:00 committed by GitHub
parent ae12ade633
commit 8b04787d62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

21
.github/workflows/auto-merge.yml vendored Normal file
View file

@ -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 }}