Skip to content

Commit 4ac74ad

Browse files
chore(config): migrate renovate config (#993)
Co-authored-by: serious-scaffold[bot] <160990600+serious-scaffold[bot]@users.noreply.github.com> Co-authored-by: Xuan Hu <i@huxuan.org>
1 parent c46b812 commit 4ac74ad

File tree

2 files changed

+76
-76
lines changed

2 files changed

+76
-76
lines changed

.renovaterc.json

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@
99
"customType": "regex",
1010
"datasourceTemplate": "pypi",
1111
"description": "Match Python packages installed with pip/pipx",
12-
"fileMatch": [
13-
"^Makefile$",
14-
"^README\\.md$",
15-
"^\\.devcontainer/Dockerfile$",
16-
"^\\.github/workflows/.+\\.yml$",
17-
"^\\.gitlab/workflows/.+\\.yml$",
18-
"^\\.readthedocs\\.yaml$",
19-
"^\\.renovaterc\\.json$",
20-
"^docs/.+\\.md$",
21-
"^includes/sample\\.jinja$",
22-
"^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$",
23-
"^template/.*\\.gitlab.*/workflows/.+\\.yml(\\.jinja)?$",
24-
"^template/Makefile\\.jinja$",
25-
"^template/\\.devcontainer/Dockerfile\\.jinja$",
26-
"^template/\\.readthedocs\\.yaml\\.jinja$",
27-
"^template/\\.renovaterc\\.json\\.jinja$",
28-
"^template/docs/.+\\.md(\\.jinja)?$"
12+
"managerFilePatterns": [
13+
"/^Makefile$/",
14+
"/^README\\.md$/",
15+
"/^\\.devcontainer/Dockerfile$/",
16+
"/^\\.github/workflows/.+\\.yml$/",
17+
"/^\\.gitlab/workflows/.+\\.yml$/",
18+
"/^\\.readthedocs\\.yaml$/",
19+
"/^\\.renovaterc\\.json$/",
20+
"/^docs/.+\\.md$/",
21+
"/^includes/sample\\.jinja$/",
22+
"/^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$/",
23+
"/^template/.*\\.gitlab.*/workflows/.+\\.yml(\\.jinja)?$/",
24+
"/^template/Makefile\\.jinja$/",
25+
"/^template/\\.devcontainer/Dockerfile\\.jinja$/",
26+
"/^template/\\.readthedocs\\.yaml\\.jinja$/",
27+
"/^template/\\.renovaterc\\.json\\.jinja$/",
28+
"/^template/docs/.+\\.md(\\.jinja)?$/"
2929
],
3030
"matchStrings": [
3131
"pip install.* (?<depName>.*?)(\\[.*?\\])?==(?<currentValue>.*?)[\"\n]",
@@ -38,9 +38,9 @@
3838
"datasourceTemplate": "repology",
3939
"depTypeTemplate": "debian",
4040
"description": "Match debian packages installed in Dockerfiles",
41-
"fileMatch": [
42-
"^\\.devcontainer\\/Dockerfile$",
43-
"^template\\/\\.devcontainer/Dockerfile\\.jinja$"
41+
"managerFilePatterns": [
42+
"/^\\.devcontainer\\/Dockerfile$/",
43+
"/^template\\/\\.devcontainer/Dockerfile\\.jinja$/"
4444
],
4545
"matchStrings": [
4646
"# renovate: depName=(?<depName>.*?)\nARG .*?_VERSION=\"(?<currentValue>.*)\"\n"
@@ -52,9 +52,9 @@
5252
"datasourceTemplate": "pypi",
5353
"depNameTemplate": "pdm",
5454
"description": "Match pdm version specified in setup-pdm GitHub Action",
55-
"fileMatch": [
56-
"^\\.github/workflows/.+\\.yml$",
57-
"^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$"
55+
"managerFilePatterns": [
56+
"/^\\.github/workflows/.+\\.yml$/",
57+
"/^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$/"
5858
],
5959
"matchStrings": [
6060
"uses: pdm-project/setup-pdm[\\s\\S]+?\\sversion: (?<currentValue>.*)\n"
@@ -65,9 +65,9 @@
6565
"datasourceTemplate": "pypi",
6666
"depNameTemplate": "pdm",
6767
"description": "Match pdm version specified in the renovate constraints",
68-
"fileMatch": [
69-
"^\\.renovaterc\\.json$",
70-
"^template/\\.renovaterc\\.json\\.jinja$"
68+
"managerFilePatterns": [
69+
"/^\\.renovaterc\\.json$/",
70+
"/^template/\\.renovaterc\\.json\\.jinja$/"
7171
],
7272
"matchStrings": [
7373
"\"pdm\": \"(?<currentValue>.*)\""
@@ -78,9 +78,9 @@
7878
"datasourceTemplate": "github-runners",
7979
"depTypeTemplate": "github-runner",
8080
"description": "Match GitHub runner defined in GitHub Actions matrix strategy",
81-
"fileMatch": [
82-
"^\\.github/workflows/.+\\.yml$",
83-
"^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$"
81+
"managerFilePatterns": [
82+
"/^\\.github/workflows/.+\\.yml$/",
83+
"/^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$/"
8484
],
8585
"matchStrings": [
8686
"# renovate: github-runner\n\\s+- (os: )?(?<depName>.*?)-(?<currentValue>.*)\n"
@@ -91,11 +91,11 @@
9191
"customType": "regex",
9292
"datasourceTemplate": "npm",
9393
"description": "Match npm packages used with npx",
94-
"fileMatch": [
95-
"^\\.github/workflows/.+\\.yml$",
96-
"^\\.gitlab/workflows/.+\\.yml$",
97-
"^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$",
98-
"^template/.*\\.gitlab.*/workflows/.+\\.yml(\\.jinja)?$"
94+
"managerFilePatterns": [
95+
"/^\\.github/workflows/.+\\.yml$/",
96+
"/^\\.gitlab/workflows/.+\\.yml$/",
97+
"/^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$/",
98+
"/^template/.*\\.gitlab.*/workflows/.+\\.yml(\\.jinja)?$/"
9999
],
100100
"matchStrings": [
101101
"--package (?<depName>.+?)@(?<currentValue>.+?)\\s"
@@ -108,8 +108,8 @@
108108
"depNameTemplate": "https://github.com/serious-scaffold/ss-python.git",
109109
"depTypeTemplate": "copier-template",
110110
"description": "Match template version specified in .copier-answers.yml",
111-
"fileMatch": [
112-
"^\\.copier-answers\\.yml$"
111+
"managerFilePatterns": [
112+
"/^\\.copier-answers\\.yml$/"
113113
],
114114
"matchStrings": [
115115
"_commit: (?<currentValue>.*?)\n"
@@ -124,8 +124,8 @@
124124
":semanticCommitTypeAll(build)"
125125
],
126126
"gitlabci": {
127-
"fileMatch": [
128-
"^.gitlab/workflows/.*\\.yml$"
127+
"managerFilePatterns": [
128+
"/^.gitlab/workflows/.*\\.yml$/"
129129
]
130130
},
131131
"packageRules": [

template/.renovaterc.json.jinja

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@
1010
"customType": "regex",
1111
"datasourceTemplate": "pypi",
1212
"description": "Match Python packages installed with pip/pipx",
13-
"fileMatch": [
14-
"^Makefile$",
15-
"^README\\.md$",
16-
"^\\.devcontainer/Dockerfile$",
17-
"^\\.github/workflows/.+\\.yml$",
18-
"^\\.gitlab/workflows/.+\\.yml$",
19-
"^\\.readthedocs\\.yaml$",
20-
"^\\.renovaterc\\.json$",
21-
"^docs/.+\\.md$"
13+
"managerFilePatterns": [
14+
"/^Makefile$/",
15+
"/^README\\.md$/",
16+
"/^\\.devcontainer/Dockerfile$/",
17+
"/^\\.github/workflows/.+\\.yml$/",
18+
"/^\\.gitlab/workflows/.+\\.yml$/",
19+
"/^\\.readthedocs\\.yaml$/",
20+
"/^\\.renovaterc\\.json$/",
21+
"/^docs/.+\\.md$/"
2222
{%- if project_name == "Serious Scaffold Python" %},
23-
"^includes/sample\\.jinja$",
24-
"^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$",
25-
"^template/.*\\.gitlab.*/workflows/.+\\.yml(\\.jinja)?$",
26-
"^template/Makefile\\.jinja$",
27-
"^template/\\.devcontainer/Dockerfile\\.jinja$",
28-
"^template/\\.readthedocs\\.yaml\\.jinja$",
29-
"^template/\\.renovaterc\\.json\\.jinja$",
30-
"^template/docs/.+\\.md(\\.jinja)?$"
23+
"/^includes/sample\\.jinja$/",
24+
"/^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$/",
25+
"/^template/.*\\.gitlab.*/workflows/.+\\.yml(\\.jinja)?$/",
26+
"/^template/Makefile\\.jinja$/",
27+
"/^template/\\.devcontainer/Dockerfile\\.jinja$/",
28+
"/^template/\\.readthedocs\\.yaml\\.jinja$/",
29+
"/^template/\\.renovaterc\\.json\\.jinja$/",
30+
"/^template/docs/.+\\.md(\\.jinja)?$/"
3131
{% endif %}
3232
],
3333
"matchStrings": [
@@ -41,10 +41,10 @@
4141
"datasourceTemplate": "repology",
4242
"depTypeTemplate": "debian",
4343
"description": "Match debian packages installed in Dockerfiles",
44-
"fileMatch": [
45-
"^\\.devcontainer\\/Dockerfile$"
44+
"managerFilePatterns": [
45+
"/^\\.devcontainer\\/Dockerfile$/"
4646
{%- if project_name == "Serious Scaffold Python" %},
47-
"^template\\/\\.devcontainer/Dockerfile\\.jinja$"
47+
"/^template\\/\\.devcontainer/Dockerfile\\.jinja$/"
4848
{% endif %}
4949
],
5050
"matchStrings": [
@@ -57,10 +57,10 @@
5757
"datasourceTemplate": "pypi",
5858
"depNameTemplate": "pdm",
5959
"description": "Match pdm version specified in setup-pdm GitHub Action",
60-
"fileMatch": [
61-
"^\\.github/workflows/.+\\.yml$"
60+
"managerFilePatterns": [
61+
"/^\\.github/workflows/.+\\.yml$/"
6262
{%- if project_name == "Serious Scaffold Python" %},
63-
"^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$"
63+
"/^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$/"
6464
{% endif %}
6565
],
6666
"matchStrings": [
@@ -72,10 +72,10 @@
7272
"datasourceTemplate": "pypi",
7373
"depNameTemplate": "pdm",
7474
"description": "Match pdm version specified in the renovate constraints",
75-
"fileMatch": [
76-
"^\\.renovaterc\\.json$"
75+
"managerFilePatterns": [
76+
"/^\\.renovaterc\\.json$/"
7777
{%- if project_name == "Serious Scaffold Python" %},
78-
"^template/\\.renovaterc\\.json\\.jinja$"
78+
"/^template/\\.renovaterc\\.json\\.jinja$/"
7979
{% endif %}
8080
],
8181
"matchStrings": [
@@ -87,9 +87,9 @@
8787
"datasourceTemplate": "github-runners",
8888
"depTypeTemplate": "github-runner",
8989
"description": "Match GitHub runner defined in GitHub Actions matrix strategy",
90-
"fileMatch": [
91-
"^\\.github/workflows/.+\\.yml$",
92-
"^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$"
90+
"managerFilePatterns": [
91+
"/^\\.github/workflows/.+\\.yml$/",
92+
"/^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$/"
9393
],
9494
"matchStrings": [
9595
"# renovate: github-runner\n\\s+- (os: )?(?<depName>.*?)-(?<currentValue>.*)\n"
@@ -100,12 +100,12 @@
100100
"customType": "regex",
101101
"datasourceTemplate": "npm",
102102
"description": "Match npm packages used with npx",
103-
"fileMatch": [
104-
"^\\.github/workflows/.+\\.yml$",
105-
"^\\.gitlab/workflows/.+\\.yml$"
103+
"managerFilePatterns": [
104+
"/^\\.github/workflows/.+\\.yml$/",
105+
"/^\\.gitlab/workflows/.+\\.yml$/"
106106
{%- if project_name == "Serious Scaffold Python" %},
107-
"^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$",
108-
"^template/.*\\.gitlab.*/workflows/.+\\.yml(\\.jinja)?$"
107+
"/^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$/",
108+
"/^template/.*\\.gitlab.*/workflows/.+\\.yml(\\.jinja)?$/"
109109
{% endif %}
110110
],
111111
"matchStrings": [
@@ -119,8 +119,8 @@
119119
"depNameTemplate": "https://github.com/serious-scaffold/ss-python.git",
120120
"depTypeTemplate": "copier-template",
121121
"description": "Match template version specified in .copier-answers.yml",
122-
"fileMatch": [
123-
"^\\.copier-answers\\.yml$"
122+
"managerFilePatterns": [
123+
"/^\\.copier-answers\\.yml$/"
124124
],
125125
"matchStrings": [
126126
"_commit: (?<currentValue>.*?)\n"
@@ -136,8 +136,8 @@
136136
],
137137
{% if repo_platform == 'gitlab' or repo_platform == 'gitlab-self-managed' or project_name == 'Serious Scaffold Python' %}
138138
"gitlabci": {
139-
"fileMatch": [
140-
"^.gitlab/workflows/.*\\.yml$"
139+
"managerFilePatterns": [
140+
"/^.gitlab/workflows/.*\\.yml$/"
141141
]
142142
},
143143
{% endif %}

0 commit comments

Comments
 (0)