Keito Kobayashi
Keito Kobayashi

Reputation: 41

renovate create only PR when packages major update

Problem

I am trying to manage package versions in my monorepo. (repository link is below.)
Now, renovate create only PR when package major update.

Sometimes renovate create minor update PRs, but I don't know what caused it.

This is my config files. (It was only recently changed, but I still can't even create a PR from the dashboard.)

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": [
    ":timezone(Asia/Tokyo)",
    ":label(renovate)",
    ":semanticCommitTypeAll(feat)",
    "schedule:weekly"
  ],
  "labels": ["dependencies", "renovate"],
  "dependencyDashboard": true,
  "packageRules": [
    {
      "groupName": "all major dependencies",
      "groupSlug": "all-major",
      "matchPackagePatterns": ["*"],
      "matchUpdateTypes": ["major"]
    },
    {
      "groupName": "all minor and patch dependencies",
      "groupSlug": "all-minor-patch",
      "matchPackagePatterns": ["*"],
      "matchUpdateTypes": ["minor", "patch"]
    }
  ]
}

repository link is here

I expected that renovate work well.

Upvotes: 4

Views: 2322

Answers (1)

Ed Harrod
Ed Harrod

Reputation: 3629

You'll probably more likely to get a response by logging this one https://github.com/renovatebot/renovate/issues, the maintainer is very responsive there.

But for your issue in particular, my guess would be that there might be something like a key:value pair for packagePattern to update types, and since both your patterns are the same, one might be overridding the other.

You could either combine the two patterns, since they are based on the same source pattern, but I actually think you could just remove altogether, since matching all packages should be the default behaviour anyway.

In general, to aid debugging for Github-hosted runs, there is a link to the logs for the job run at the bottom of the MR, which for your repo takes you to https://developer.mend.io/github/Bayathy/eslint:

enter image description here

There should be more information there as to why and how Renovate created the PRs.

Upvotes: 1

Related Questions