Skip to content

Commit

Permalink
ci: update renovate config from validator recommends
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau committed Aug 8, 2024
1 parent 734ed64 commit 7bfa517
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
// Update all internal packages in one higher-priority PR
groupName: "internal packages",
matchDepPatterns: ["craft-.*", "snap-.*"],
matchLanguages: ["python"],
matchCategories: ["python"],
prPriority: 2,
matchBaseBranches: ["$default"], // Not for hotfix branches
},
Expand Down Expand Up @@ -103,10 +103,11 @@
matchBaseBranches: ["$default"], // Not for hotfix branches
}
],
regexManagers: [
customManagers: [
{
// tox.ini can get updates too if we specify for each package.
fileMatch: ["tox.ini"],
customType: regex,
depTypeTemplate: "devDependencies",
matchStrings: [
"# renovate: datasource=(?<datasource>\\S+)\n\\s+(?<depName>.*?)(\\[[\\w]*\\])*[=><]=?(?<currentValue>.*?)\n"
Expand All @@ -115,6 +116,7 @@
{
// .pre-commit-config.yaml version updates
fileMatch: [".pre-commit-config.yaml"],
customType: regex,
datasourceTemplate: "pypi",
depTypeTemplate: "lint",
matchStrings: [
Expand All @@ -129,7 +131,7 @@
prCreation: "not-pending", // Wait until status checks have completed before raising the PR
prNotPendingHours: 4, // ...unless the status checks have been running for 4+ hours.
prHourlyLimit: 1, // No more than 1 PR per hour.
stabilityDays: 2, // Wait 2 days from release before updating.
minimumReleaseAge: 2, // Wait 2 days from release before updating.
automergeStrategy: "squash", // Squash & rebase when auto-merging.
semanticCommitType: "build" // use `build` as commit header type (i.e. `build(deps): <description>`)
}

0 comments on commit 7bfa517

Please sign in to comment.