Skip to content
Discussion options

You must be logged in to vote

This looks like a logic issue with how baseBranches interacts with packageRules. Since you've defined both branches in the global baseBranches array, Renovate will scan and attempt updates for both across all repositories. packageRules don't filter which branches are scanned; they only apply settings once an update is discovered.

To restrict develop updates to specific projects, you need to explicitly set enabled: false for all other repositories when the base branch is develop:

{
  "packageRules": [
    {
      "matchBaseBranches": ["develop"],
      "matchRepositories": ["!/^MyGroup/mysubgroup/myprojects/"],
      "enabled": false
    }
  ]
}

One gotcha: matchRepositories matches the fu…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@javaxiss
Comment options

@javaxiss
Comment options

@Nickalus12
Comment options

Answer selected by javaxiss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants