# Renovate automerge for lazy developers

> My Renovate config merges minor and patch updates once CI passes and keeps majors as PRs, plus the setting that held my updates for a week.

By Emil Celustka, 2026-11-03, updated 2026-11-16. Web version: https://celustka.dev/blog/renovate-automerge-dependency-updates

On this site, Renovate opens updates every Monday and CI decides which land on their own. From 28 October to 8 November, 3 of 5 updates reached `main` without a PR, and I merged the 2 majors by hand.

## Why Renovate and not Dependabot

Most update work is routine, so I let a bot do it. I looked at Dependabot first, since it's built into GitHub. It can [group updates](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#groups), run on a schedule, and as of November 2026 it [waits 3 days](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/about-dependabot-version-updates#updates-for-packages) after a release. Two things made me pick Renovate anyway.

Automerge is a config option in Renovate. Dependabot has no automerge setting in its config, and GitHub's docs show [a GitHub Actions workflow](https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#enabling-automerge-on-a-pull-request) that calls `gh pr merge --auto` on its PRs.

Renovate also keeps a [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/): one issue in the repo that lists every update and what each one is waiting for. It's the one place where I see all updates, and its checkbox starts one early instead of waiting for Monday.

## Install the app and add a config

Install the [Renovate GitHub App](https://docs.renovatebot.com/getting-started/installing-onboarding/#repository-onboarding) on the repo. If the repo has no config yet, Renovate opens a "Configure Renovate" PR with a `renovate.json` and does nothing else until you merge it. A good start is the preset Renovate itself recommends:

```json title="renovate.json"
{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": ["config:best-practices"]
}
```

[`config:best-practices`](https://docs.renovatebot.com/presets-config/#configbest-practices) adds digest pinning for GitHub Actions and Docker, exact versions for `devDependencies` (`:pinDevDependencies`), weekly lock file maintenance and a 3-day wait for npm packages on top of `config:recommended`.

I wrote my `renovate.json` myself and committed it together with the CI workflow. The first five update PRs came the next morning.

## Let CI decide what lands

Automerge is only as safe as your checks. By default, Renovate [won't automerge](https://docs.renovatebot.com/key-concepts/automerge/#absence-of-tests) until it sees passing status checks. My CI runs lint, the format check, `astro check`, `svelte-check` and the build on every push, to any branch:

```yaml title=".github/workflows/ci.yml"
on: push
```

The push trigger matters once you automerge without PRs (next section). Those branches never get a PR, so a `pull_request` trigger never tests them. I had both triggers at first, and every Renovate PR ran CI twice on the same commit. A PR shows the checks of its head commit, so the push run is enough.

It paid off in the first week. Lock file maintenance rebuilds `pnpm-lock.yaml` from scratch, and on that PR CI failed:

```txt title="pnpm lint"
/home/runner/work/site/site/scripts/favicons.ts
   9:7   error  Unsafe assignment of an error typed value                                                               @typescript-eslint/no-unsafe-assignment
   9:19  error  Unsafe call of a type that could not be resolved                                                        @typescript-eslint/no-unsafe-call
…
```

`@types/node` was only in the lock file as an optional peer of Vite and Astro. The fresh lock file dropped it, Node globals lost their types, and type-aware ESLint failed with 140 errors. Lock file maintenance was set to automerge, so that failing check was the only thing keeping the broken lock file off `main`. The fix was to declare the package I depend on:

```diff title="package.json"
     "@types/mdast": "^4.0.4",
+    "@types/node": "^24.19.2",
     "astro-eslint-parser": "^3.2.0",
```

That was the Node 24 major at the time. The Node 26 PR later moved it to `^26`.

## Merge the safe updates without a PR

Lines 5–25 of [the full config](#the-whole-config) do most of the work. With [`automergeType: "branch"`](https://docs.renovatebot.com/key-concepts/automerge/#branch-vs-pr-automerging), Renovate tests the update on its own branch, and if the checks pass, it pushes the commit straight to `main` without a PR. If they fail, it opens a PR for you. This needs a `main` that accepts direct pushes from Renovate. If yours is protected, keep the default `"pr"`.

`matchCurrentVersion: "!/^0/"` keeps 0.x packages out of automerge, because under SemVer [they can break at any time](https://docs.renovatebot.com/key-concepts/automerge/#automerge-non-major-updates). `groupName` puts all minor and patch updates into one branch, so a normal week is one commit. The GitHub Actions rule does the same for digest pins and their updates, so a new commit behind a tag like `actions/checkout@v7` lands without a PR too.

The 3-day wait for npm packages comes from `config:best-practices`. Renovate recommends [14 days](https://docs.renovatebot.com/upgrade-best-practices/#wait-two-weeks-before-automerging-third-party-dependencies) for automerged third-party packages, so pick what fits your repo. The [schedule](https://docs.renovatebot.com/key-concepts/scheduling/) is cron: before 6am on Monday, in my timezone.

I used to set [`minimumReleaseAge`](https://docs.renovatebot.com/key-concepts/minimum-release-age/) at the top level, so the wait covered GitHub Actions too. Since Renovate 42, an update with no release timestamp counts as too new. Lock file maintenance has none, and that PR sat for a week with a pending `renovate/stability-days` check, next to my GitHub Actions digest pins. Renovate can't age lock file maintenance anyway, because the package manager picks the versions. pnpm has its own [`minimumReleaseAge`](https://pnpm.io/settings/dependency-resolution#minimumreleaseage), in minutes:

```yaml title="pnpm-workspace.yaml"
minimumReleaseAge: 4320 # 3 days
```

[`rangeStrategy: "bump"`](https://docs.renovatebot.com/configuration-options/#rangestrategy) moves the range in `package.json` too (`^1.0.0` to `^1.1.0`), so the file shows what actually runs. `config:best-practices` also pins `devDependencies` to exact versions. I want ranges everywhere, so `ignorePresets` turns `:pinDevDependencies` off.

## Keep the majors for yourself

Majors never automerge in my setup, so they arrive as PRs. I like to handle those myself, check the bundle size and see whether anything broke. tailwind-variants v4 was one of them: its lite build grew from 4.0 kB to 5.9 kB gzipped, and I merged it on 4 November. You can set it however you like; this is the part to tune.

Lines 26–53 of the full config keep the majors manageable. Groups put a framework and its plugins into one branch, so they update together. [`allowedVersions`](https://docs.renovatebot.com/configuration-options/#packagerulesallowedversions) keeps `@types/node` on the Node major I run. The last rule turns off TypeScript majors, since `astro check` doesn't support TypeScript 7 as of November 2026. Delete a rule like that once its reason is gone.

## One Monday on the dashboard

On Monday, 2 November, three commits from `renovate[bot]` landed on `main` without a PR: `fix(deps): update astro`, `fix(deps): update dependency svelte to ^5.57.3` and `fix(deps): update non-major dependencies`. Two majors came as PRs: Node 26, which I merged after moving `engines` and `@types/node` to the new major, and tailwind-variants v4.

That day, the dashboard showed what came next (trimmed):

```txt title="Dependency Dashboard"
## Awaiting Schedule
 - [ ] chore(deps): lock file maintenance
## Pending Status Checks
…
 - [ ] fix(deps): update dependency astro to ^7.4.5
…
 - [ ] fix(deps): update tailwind to ^4.3.4 (`@tailwindcss/vite`, `tailwindcss`)
## Pending Branch Automerge
 - [ ] chore(deps): pin dependencies (`actions/checkout`, `actions/setup-node`)
## Open
 - [ ] fix(deps): update dependency tailwind-variants to v4
```

"Pending Status Checks" is the 3-day wait. "Pending Branch Automerge" means the branch waits for its checks to pass. For the pin PR, one of those checks was `renovate/stability-days`, and it never passed (more on that above). My part of that week was the two major PRs.

## The whole config

Start with `config:best-practices` and CI on every push, then add a rule when a PR shows you need one, the way the `@types/node` dependency came out of the lock file failure. This is the full `renovate.json` of this site. Change the timezone and the groups to match your stack, and drop the rules whose reasons don't apply to you:

```json title="renovate.json" showLineNumbers
{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": ["config:best-practices", ":semanticCommits"],
  "ignorePresets": [":pinDevDependencies"],
  "timezone": "Europe/Prague",
  "schedule": ["* 0-5 * * 1"],
  "rangeStrategy": "bump",
  "lockFileMaintenance": {
    "automerge": true,
    "automergeType": "branch"
  },
  "packageRules": [
    {
      "matchUpdateTypes": ["minor", "patch"],
      "matchCurrentVersion": "!/^0/",
      "groupName": "non-major dependencies",
      "automerge": true,
      "automergeType": "branch"
    },
    {
      "matchManagers": ["github-actions"],
      "matchUpdateTypes": ["pinDigest", "digest"],
      "automerge": true,
      "automergeType": "branch"
    },
    {
      "description": "Keep .nvmrc and engines as loose ranges, bump only when a new major is out of range",
      "matchPackageNames": ["node"],
      "rangeStrategy": "replace"
    },
    {
      "description": "Keep @types/node on the Node major from .nvmrc",
      "matchPackageNames": ["@types/node"],
      "allowedVersions": "<27"
    },
    {
      "matchPackageNames": ["astro", "@astrojs/**"],
      "groupName": "astro"
    },
    {
      "matchPackageNames": ["svelte", "svelte-check", "@sveltejs/**"],
      "groupName": "svelte"
    },
    {
      "matchPackageNames": ["tailwindcss", "@tailwindcss/**"],
      "groupName": "tailwind"
    },
    {
      "description": "TypeScript stays on v6 (astro check lacks TS 7 support)",
      "matchPackageNames": ["typescript"],
      "matchUpdateTypes": ["major"],
      "enabled": false
    }
  ]
}
```
