Skip to content

Commit 12c4098

Browse files
renovate: less frequent dependency updates
* Update dependencies once a month. * Update only the earliest maintenance branch, other branches require approval (except for MPS prereleases).
1 parent 117f0df commit 12c4098

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/renovate.json5

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"config:best-practices"
55
],
66

7-
// Renovate master and recent maintenance branches
7+
// Renovate master and recent maintenance branches. When updating the maintenance branch pattern, update the rule
8+
// for dashboard approvals for all but the earliest maintenance branch.
89
"baseBranchPatterns": ["master", "/^maintenance/mps202[4-9][0-9]/"],
910

1011
"packageRules": [
@@ -43,14 +44,14 @@
4344
{
4445
// Disable JBR updates on maintenance branches
4546
"matchPackageNames": ["com.jetbrains.jdk:*"],
46-
"matchBaseBranches": ["!/^master$/"],
47+
"matchBaseBranches": ["!master"],
4748
"enabled": false
4849
},
4950

5051
{
5152
// Disable Python updates on maintenance branches
5253
"matchManagers": "pip_requirements",
53-
"matchBaseBranches": ["!/^master$/"],
54+
"matchBaseBranches": ["!master"],
5455
"enabled": false,
5556
},
5657

@@ -64,6 +65,7 @@
6465
"matchPackageNames": ["org.eclipse*"],
6566
"groupName": "eclipse"
6667
},
68+
6769
{
6870
"matchPackageNames": ["com.miglayout*"],
6971
"groupName": "miglayout"
@@ -75,7 +77,21 @@
7577
"matchDepTypes": ["dependencies"], // Exclude plugins
7678
"matchPackageNames": ["!com.jetbrains*"], // Exclude MPS and JBR
7779
"matchUpdateTypes": ["minor", "patch"],
78-
"groupName": "third-party-minor"
80+
"groupName": "third-party-minor",
81+
},
82+
83+
{
84+
// Schedule dependency updates once a month
85+
"matchJsonata": ["(manager = 'pip_requirements') or (depType = 'dependencies')"],
86+
"schedule": "* 0-3 1 * *" // Only check for new versions once a month on the 1st, before 4 AM.
87+
},
88+
89+
// Updates to all maintenance branches except the earliest one need approval. Updates to mps-prerelease are
90+
// an exception because we want to see those right away.
91+
{
92+
"matchBaseBranches": ["!maintenance/mps20241"],
93+
"matchPackageNames": ["!com.jetbrains.mps:mps-prerelease"],
94+
"dependencyDashboardApproval": true
7995
}
8096
]
8197
}

0 commit comments

Comments
 (0)