Skip to content

How to setup packageRules for a monorepo #31399

Discussion options

You must be logged in to vote

I was able to target the updates with the following config:

  packageRules: [
    {
      matchPackageNames: ["software.amazon.awssdk/**"],
      schedule: ["on the first day of the month"]
    }
  ]

I thought I needed my packageRules to match against the monorepo package name. I later realised that you need to match on the Maven group ID for individual artifacts. The monorepo config is only used for grouping updates, not for targeting packageRules.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@danielcompton
Comment options

@rarkins
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by danielcompton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:reproduction A minimal reproduction is necessary to proceed auto:logs-packages Needs packageFiles with updates logs
2 participants