Skip to content

Commit 0d93ab8

Browse files
authored
feat(ci): auto-bump GNOME extension submodule tags (#4577)
1 parent 42d329c commit 0d93ab8

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/renovate.json5

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,25 @@
2121
],
2222
datasourceTemplate: 'docker',
2323
},
24+
// Track GNOME extension submodules that pin to a release tag via the
25+
// `branch =` field in .gitmodules. Renovate's git-submodules manager
26+
// alone can't see new tags because tags don't move; this rewrites the
27+
// `branch =` line and the git-submodules manager then advances the SHA.
28+
// Uses github-tags (not github-releases) because some upstreams ship
29+
// git tags without publishing GitHub Releases (e.g. caffeine).
30+
{
31+
customType: 'regex',
32+
managerFilePatterns: [
33+
'/^\\.gitmodules$/',
34+
],
35+
matchStringsStrategy: 'recursive',
36+
matchStrings: [
37+
'\\[submodule "[^"]+"\\][^\\[]*?url\\s*=\\s*https?://github\\.com/(?<depName>[^/\\s]+/[^/\\s]+?)(?:\\.git)?\\s[^\\[]*?branch\\s*=\\s*(?<currentValue>\\S*v\\d+\\S*)',
38+
],
39+
datasourceTemplate: 'github-tags',
40+
versioningTemplate: 'loose',
41+
depTypeTemplate: 'gnome-extension',
42+
},
2443
],
2544

2645
"packageRules": [
@@ -49,6 +68,15 @@
4968
"matchDepNames": [
5069
"ghcr.io/ublue-os/silverblue-main"
5170
]
71+
},
72+
{
73+
"matchDepTypes": ["gnome-extension"],
74+
"matchPackageNames": ["micheleg/dash-to-dock"],
75+
"versioning": "regex:^extensions\\.gnome\\.org-v(?<major>\\d+)$"
76+
},
77+
{
78+
"matchDepTypes": ["gnome-extension"],
79+
"groupName": "GNOME extensions"
5280
}
5381
]
5482
}

0 commit comments

Comments
 (0)