Skip to content

Commit 5ff57c0

Browse files
authored
fix(renovate): strip regex delimiters from fileMatch patterns (#16)
PR #13 replaced managerFilePatterns with fileMatch but kept the /…/ regex delimiters in the patterns. fileMatch expects plain regex strings, so patterns like "/roles/…$/" never matched any files. This broke auto-bump for cozystack versions since 2026-03-19. Strip the leading/trailing / delimiters so Renovate matches files correctly again. Assisted-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>
1 parent 179fabb commit 5ff57c0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

renovate.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"customManagers": [
1616
{
1717
"customType": "regex",
18-
"fileMatch": ["/roles/cozystack/defaults/main\\.yml$/"],
18+
"fileMatch": ["roles/cozystack/defaults/main\\.yml$"],
1919
"matchStrings": [
2020
"cozystack_chart_version:\\s*\"(?<currentValue>[^\"]+)\""
2121
],
@@ -24,7 +24,7 @@
2424
},
2525
{
2626
"customType": "regex",
27-
"fileMatch": ["/^galaxy\\.yml$/"],
27+
"fileMatch": ["^galaxy\\.yml$"],
2828
"matchStrings": [
2929
"version:\\s*(?<currentValue>\\S+)"
3030
],
@@ -33,7 +33,7 @@
3333
},
3434
{
3535
"customType": "regex",
36-
"fileMatch": ["/(^|/)requirements\\.yml$/"],
36+
"fileMatch": ["(^|/)requirements\\.yml$"],
3737
"matchStrings": [
3838
"source:\\s*https://github\\.com/cozystack/ansible-cozystack\\.git\\s+type:\\s*git\\s+version:\\s*(?<currentValue>\\S+)"
3939
],

0 commit comments

Comments
 (0)