title | date | featured | pinned | draft | series | categories | tags | authors | images | |||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Merge Renovate's PRs via Mergify Automatically |
2023-03-29 13:21:09 +0800 |
false |
false |
false |
|
|
The other day I successfully set up [Renovate]({{< relref "blog/hugo/renovate-module-dependencies" >}}) (automated dependency update application) for my Hugo modules and modular sites. But I soon realized that manually merging these PRs was very tedious. So I started looking for a way to automatically merge PRs.
The first thing that came to mind was Renovate's own auto-merge feature, but it takes a long time to merge a PR, which is not what I was expecting.
So I started looking for alternatives from GitHub marketplace, and give the most popular one - Mergify a shot, it works great up to now.
Put the .mergify.yml
file on the repo root.
pull_request_rules:
- name: automatic merge for Renovate pull requests
conditions:
- author=renovate[bot]
- check-success=build
actions:
merge:
method: rebase
check-success=build
:build
is the GitHub action's job name, not workflow name.method: rebase
: see https://docs.mergify.com/actions/merge/.
Read more on Mergify Docs.