File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 21
21
"matchStrings" : [
22
22
" - \\ *\\ *(?<depName>Copier|copier-templates-extensions)\\ *\\ * \u2265 (?<currentValue>.*?)\\ s"
23
23
]
24
+ },
25
+ {
26
+ "description" : " Update pre-commit hook revs in Jinja template" ,
27
+ "customType" : " regex" ,
28
+ "datasourceTemplate" : " github-tags" ,
29
+ "depNameTemplate" : " {{{ depName }}}" ,
30
+ "extractVersionTemplate" : " {{currentValue}}" ,
31
+ "autoReplaceStringTemplate" : " - repo: https://github.com/{{{depName}}}\n rev: {{{newVersion}}}" ,
32
+ "matchStrings" : [
33
+ " (?ms)^\\ s*-\\ s*repo:\\ s*https?://github\\ .com/(?<depName>[^/\\ s]+/[^/\\ s]+)\\ b.*?\\ n\\ s*rev:\\ s*[\" ']?(?<currentValue>v?\\ d+\\ .\\ d+\\ .\\ d+)[\" ']?"
34
+ ],
35
+ "managerFilePatterns" : [
36
+ " /^template/\\ .pre-commit-config\\ .ya?ml(?:\\ .jinja)?$/"
37
+ ]
24
38
}
25
39
],
26
- "pre-commit" : {
27
- "managerFilePatterns" : [
28
- " /(^|/)template/\\ .pre-commit-config\\ .ya?ml(?:\\ .jinja)?$/"
29
- ]
30
- },
31
40
"github-actions" : {
32
41
"managerFilePatterns" : [
33
42
" /^template/.+\\ .github.+/actions/.*\\ .ya?ml(?:\\ .jinja)?$/" ,
You can’t perform that action at this time.
0 commit comments