Skip to content

Commit

Permalink
renovate: reduce the frequency of PR creation
Browse files Browse the repository at this point in the history
Create PRs on Monday, twice a day and create PR only once a month for
GitHub actions updates. This commit also adds double quotes around some
JSON fields.

Signed-off-by: Mahe Tardy <[email protected]>
  • Loading branch information
mtardy committed Jul 13, 2023
1 parent d193787 commit 2ad7b44
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@
"Dockerfile*",
"install/kubernetes/values.yaml",
],
postUpdateOptions: [
"postUpdateOptions": [
"gomodTidy"
],
"rebaseWhen": "conflicted",
"pinDigests": true,
"ignorePresets": [":prHourlyLimit2"],
"separateMajorMinor": true,
"separateMultipleMajor": true,
"separateMinorPatch": true,
Expand All @@ -47,8 +46,8 @@
"kind/enhancement",
"release-blocker"
],
schedule: [
"on monday and friday"
"schedule": [
"on monday"
],
// about packageRules: To enable grouping, you configure the groupName field
// to something non-null.
Expand All @@ -66,6 +65,9 @@
"digest",
"pin",
"pinDigest"
],
"schedule": [
"every month"
]
},
{
Expand Down Expand Up @@ -93,7 +95,7 @@
"major",
"minor",
],
matchBaseBranches: [
"matchBaseBranches": [
"main"
],
},
Expand All @@ -108,7 +110,7 @@
// update source import paths on major updates
"gomodUpdateImportPaths",
],
postUpgradeTasks: {
"postUpgradeTasks": {
"commands": ["/tmp/install-buildx", "make codegen", "make generate"],
"fileFilters": ["**/**"],
"executionMode": "branch"
Expand All @@ -119,7 +121,7 @@
"pin",
"pinDigest"
],
matchBaseBranches: [
"matchBaseBranches": [
"main"
],
},
Expand All @@ -135,7 +137,7 @@
// update source import paths on major updates
"gomodUpdateImportPaths",
],
postUpgradeTasks: {
"postUpgradeTasks": {
"commands": ["/tmp/install-buildx", "make codegen", "make generate"],
"fileFilters": ["**/**"],
"executionMode": "branch"
Expand All @@ -148,7 +150,7 @@
"pin",
"pinDigest"
],
matchBaseBranches: [
"matchBaseBranches": [
"main"
],
},
Expand All @@ -162,15 +164,15 @@
// update source import paths on major updates
"gomodUpdateImportPaths",
],
postUpgradeTasks: {
"postUpgradeTasks": {
"commands": ["/tmp/install-buildx", "make codegen", "make generate"],
"fileFilters": ["**/**"],
"executionMode": "branch"
},
"matchUpdateTypes": [
"major",
],
matchBaseBranches: [
"matchBaseBranches": [
"main"
],
},
Expand All @@ -185,7 +187,7 @@
// update source import paths on major updates
"gomodUpdateImportPaths",
],
postUpgradeTasks: {
"postUpgradeTasks": {
"commands": ["/tmp/install-buildx", "make codegen", "make generate"],
"fileFilters": ["**/**"],
"executionMode": "branch"
Expand All @@ -197,7 +199,7 @@
"pin",
"pinDigest"
],
matchBaseBranches: [
"matchBaseBranches": [
"main"
],
},
Expand Down Expand Up @@ -237,7 +239,7 @@
"install/kubernetes/values.yaml",
],
// lint and generate files for helm chart
postUpgradeTasks: {
"postUpgradeTasks": {
"commands": ["install/kubernetes/test.sh"],
"fileFilters": ["**/**"],
"executionMode": "branch"
Expand Down

0 comments on commit 2ad7b44

Please sign in to comment.