A GitHub Action to automatically label, approve, and merge pull requests made by Dependabot. This was built because the auto-merge feature was removed when Dependabot became a native-GitHub feature.
This is a fork of koj-co/dependabot-pr-action
You can run this workflow, for example, once every hour:
name: Auto-merge minor/patch
on:
schedule:
- cron: "0 * * * *"
jobs:
test:
name: Auto-merge minor and patch updates
runs-on: ubuntu-18.04
steps:
- uses: imaware/dependabot-pr-action@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
merge-minor: true
merge-patch: true
merge-method: squash
Your GitHub token, usually {{ secrets.GITHUB_TOKEN }}
or a personal access token if you have a bot account.
Refer to original docs
New features is merge-method
which allows for the action to merge
, rebase
, or squash
. The default is rebase