Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.4 KB

File metadata and controls

47 lines (36 loc) · 1.4 KB
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
Mergify
Renovate
HugoMods

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.

What's wrong with Renovate's built-in Auto Merge?

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.

Mergify

So I started looking for alternatives from GitHub marketplace, and give the most popular one - Mergify a shot, it works great up to now.

Mergify Configuration

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

Read more on Mergify Docs.