Skip to content

Commit

Permalink
chore(renovate): fewer PRs to hotfix branches (#237)
Browse files Browse the repository at this point in the history
Renovate should only PR to hotfix branches for non-dev patch updates.
  • Loading branch information
lengau authored Sep 14, 2024
1 parent 4ff2076 commit afb80d1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@
// Automerge patches, pin changes and digest changes.
// Also groups these changes together.
groupName: "bugfixes",
excludeDepPatterns: ["lint/.*", "types/.*"],
excludeDepPatterns: [
"lint/.*",
"types/.*",
"pyright", // Pyright needs to be done separately.
],
matchUpdateTypes: ["patch", "pin", "digest"],
prPriority: 3, // Patches should go first!
automerge: true
Expand All @@ -57,6 +61,7 @@
//Do all pydantic-related updates together
groupName: "pydantic etc.",
matchPackagePatterns: ["^pydantic"],
matchBaseBranches: ["$default"], // Only do minor releases on main
},
{
// Minor changes can be grouped and automerged for dev dependencies, but are also deprioritised.
Expand Down Expand Up @@ -91,7 +96,8 @@
],
matchUpdateTypes: ["minor", "patch", "pin", "digest"],
prPriority: -1,
automerge: true
automerge: true,
matchBaseBranches: ["$default"], // Not for hotfix branches
},
{
// Documentation related updates
Expand Down

0 comments on commit afb80d1

Please sign in to comment.