Skip to content

Commit f951931

Browse files
fix(renovate): update config
1 parent 3151b3a commit f951931

1 file changed

Lines changed: 27 additions & 38 deletions

File tree

renovate-config.json5

Lines changed: 27 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@
22
// see https://docs.renovatebot.com/configuration-options
33
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
44
"branchNameStrict": true, // remove special characters from branch names
5-
"commitMessageAction": "Bump", // Bump is more similar to dependabot
65
"configMigration": true, // allow renovate to open PRs to update config
76
"constraintsFiltering": "strict", // ensure dependencies are compatible with dependency constraints
87
"description": "Default renovate configuration for LizardByte repositories",
9-
"extends": [
10-
"config:recommended",
11-
"group:recommended",
12-
],
138
"dependencyDashboard": true, // Creates an issue with a "dashboard" of dependencies
149
"dependencyDashboardLabels": [
1510
"dependencies"
1611
],
12+
"extends": [
13+
"config:recommended",
14+
"group:recommended",
15+
":semanticCommits",
16+
":semanticCommitTypeAll(chore)",
17+
],
1718
"labels": [
1819
"dependencies",
1920
"{{category}}"
@@ -22,11 +23,12 @@
2223
"rollbackPrs": true, // create a rollback PR when a dependency is yanked
2324
"schedule": [
2425
"after 1am",
25-
"before 6am"
26+
"before 8am"
2627
],
2728
"semanticCommitScope": "deps",
28-
"semanticCommitType": "build",
29+
"semanticCommitType": "chore",
2930
"semanticCommits": "enabled",
31+
"separateMultipleMajors": true, // create separate PRs for major updates
3032
"timezone": "America/New_York",
3133
"updatePinnedDependencies": true,
3234
// beta features
@@ -35,6 +37,15 @@
3537
},
3638
// group/package rules
3739
"packageRules": [
40+
// Keep Debian Docker tags on plain codenames or major versions, not dated rebuild tags.
41+
{
42+
"matchDatasources": ["docker"],
43+
"matchPackageNames": [
44+
"debian",
45+
],
46+
"matchCurrentValue": "/^(?:[a-z]+|\\d+)(?:-[a-z]+)?$/",
47+
"allowedVersions": "/^(?:[a-z]+|\\d+)(?:-[a-z]+)?$/"
48+
},
3849
// Group GitHub maintained actions
3950
{
4051
"groupName": "Official GitHub Actions",
@@ -47,18 +58,6 @@
4758
"github/**"
4859
],
4960
},
50-
// combine LizardByte/plexhints and pypi plexhints into a single group
51-
{
52-
"groupName": "plexhints",
53-
"matchCategories": [
54-
"ci",
55-
"python",
56-
],
57-
"matchPackageNames": [
58-
"LizardByte/plexhints",
59-
"plexhints",
60-
],
61-
},
6261
// combine oddstr13/jellyfin-plugin-repository-manager and pypi jprm into a single group
6362
{
6463
"groupName": "jprm",
@@ -71,27 +70,17 @@
7170
"jprm",
7271
],
7372
},
74-
// combine plexapi and plexapi-backport into a single group
75-
{
76-
"groupName": "plexapi",
77-
"matchCategories": [
78-
"python",
79-
],
80-
"matchPackageNames": [
81-
"plexapi",
82-
"plexapi-backport",
83-
],
84-
},
85-
// remaining LizardByte actions
73+
],
74+
"customManagers": [
75+
// CPM Package Lock
8676
{
87-
"groupName": "LizardByte GitHub Actions",
88-
"groupSlug": "lizardbyte-gh-actions",
89-
"matchManagers": [
90-
"github-actions"
91-
],
92-
"matchPackageNames": [
93-
"LizardByte/**"
77+
"customType": "regex",
78+
"managerFilePatterns": ["(^|/)package-lock\\.cmake$"],
79+
"matchStrings": [
80+
"# renovate: datasource=(?<datasource>[a-zA-Z0-9-._]+?) depName=(?<depName>[^\\s]+?)(?: packageName=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?(?: registryUrl=(?<registryUrl>[^\\s]+?))?\\s+set\\([A-Za-z0-9_]+?_VERSION\\s+\\\"?(?<currentValue>[^\\\"\\s\\)]+)\\\"?\\s*\\)",
81+
"# renovate: datasource=(?<datasource>[a-zA-Z0-9-._]+?) depName=(?<depName>[^\\s]+?)(?: packageName=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?(?: registryUrl=(?<registryUrl>[^\\s]+?))?\\s+set\\([A-Za-z0-9_]+?_VERSION\\s+\\\"?(?<currentValue>[^\\\"\\s\\)]+)\\\"?\\s*\\)\\s+set\\([A-Za-z0-9_]+?_SHA256\\s+(?<currentDigest>[a-fA-F0-9]{64})\\s*\\)",
9482
],
83+
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{/if}}"
9584
},
9685
],
9786
}

0 commit comments

Comments
 (0)