You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Pull request automerge action
v1.2.0
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/[email protected]
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.