GitHub Action to automatically merge pull requests when some conditions are met.
Pull request merge method: "merge", "squash", "rebase". Default is "squash".
Minimum number of approvals needed on a pull request to be merged. Default is 2.
Base ref branch to filter pull requests. Default is "dev".
name: PRs auto merge
on:
schedule:
# Every friday every hour between 12 and 15 UTC
- cron: "0 12-15 * * 5"
jobs:
pr-automerge:
runs-on: ubuntu-latest
steps:
- uses: davideviolante/pr-automerge-action@v1.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
merge-method: 'squash' # Default 'squash'
min-approvals: 2 # Default 2
base-ref: 'dev' # Default 'dev'
Please open an issue.