Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve renovate #23411

Merged
merged 6 commits into from
Apr 23, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 84 additions & 9 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,21 @@
semanticCommitScope: null,
prHourlyLimit: 0,
packageRules: [
// these rules define group names
{
groupName: "packages",
paths: ["package.json", "packages/**"],
},
{
groupName: "www",
paths: ["www/package.json"],
},
{
groupName: "starters and examples",
paths: ["starters/**", "examples/**"],
},
// these rules define dependencies that we have special handling for
{
groupName: "minor updates in packages",
updateTypes: ["minor"],
excludePackageNames: [
// below is list of packages that use 0.X version range, any minor bump there can contain breaking changes, so we just ignore minor bumps for those packages and will need to bump them manually
Expand Down Expand Up @@ -47,9 +60,12 @@
"react-docgen",
],
},
// we need to replicate this so that it goes to a separate group
{
// minor updates in packages <1.0.0 - need master issue approval
// not grouped
groupName: "packages (<1.0.0 minor)",
paths: ["package.json", "packages/**"],
masterIssueApproval: true,
updateTypes: ["minor"],
packageNames: [
Expand Down Expand Up @@ -79,21 +95,80 @@
],
},
{
groupName: "patch updates in packages",
updateTypes: ["patch"],
// minor updates in packages <1.0.0 - need master issue approval
// not grouped
groupName: "www (<1.0.0 minor)",
paths: ["www/package.json"],
masterIssueApproval: true,
updateTypes: ["minor"],
packageNames: [
// below is list of packages that use 0.X version range, any minor bump there can contain breaking changes, so we just ignore minor bumps for those packages and will need to bump them manually
"@reach/skip-nav",
"@theme-ui/prism",
"@theme-ui/typography",
"axios",
"babel-preset-gatsby",
"sharp",
"gatsby-plugin-theme-ui",
"graphiql-explorer",
"guess-webpack",
"jest-silent-reporter",
"js-combinatorics",
"jscodeshift",
"mini-css-extract-plugin",
"react-refresh",
"scroll-behavior",
"theme-ui",
"webpack-stats-plugin",
"xlsx",
"zipkin",
"zipkin-transport-http",
// below is list of packages that we use alpha/beta/next/canary, where it's not really safe to bump automatically and need extra caution
"react-docgen",
],
},
{
depTypeList: ["engines"],
enabled: false,
// minor updates in packages <1.0.0 - need master issue approval
// not grouped
groupName: "starters and examples (<1.0.0 minor)",
paths: ["starters/**", "examples/**"],
masterIssueApproval: true,
updateTypes: ["minor"],
packageNames: [
// below is list of packages that use 0.X version range, any minor bump there can contain breaking changes, so we just ignore minor bumps for those packages and will need to bump them manually
"@reach/skip-nav",
"@theme-ui/prism",
"@theme-ui/typography",
"axios",
"babel-preset-gatsby",
"sharp",
"gatsby-plugin-theme-ui",
"graphiql-explorer",
"guess-webpack",
"jest-silent-reporter",
"js-combinatorics",
"jscodeshift",
"mini-css-extract-plugin",
"react-refresh",
"scroll-behavior",
"theme-ui",
"webpack-stats-plugin",
"xlsx",
"zipkin",
"zipkin-transport-http",
// below is list of packages that we use alpha/beta/next/canary, where it's not really safe to bump automatically and need extra caution
"react-docgen",
],
},
{
groupName: "updates in starters",
paths: ["starters/**"],
updateTypes: ["patch"],
depTypeList: ["engines"],
enabled: false,
},
{
groupName: "type updates",
groupName: "types",
packagePatterns: ["^@types"],
// only upgrade types with approval as they can break transitives
masterIssueApproval: true,
},
],
timezone: "GMT",
Expand Down