Skip to content

Commit 122b6b0

Browse files
michaelkedartymzd
authored andcommitted
feat: attempt to add osv SCHEMA_VERSION to renovate (google#4973)
Trying to fix google#3816 I'm not 100% sure on the syntax of this configuration, and I can't work out how to test this locally. Let's just try this
1 parent d6bbf96 commit 122b6b0

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

renovate.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@
169169
},
170170
{
171171
"matchDatasources": [
172-
"git-refs"
172+
"git-refs",
173+
"github-tags"
173174
],
174175
"groupName": "submodules"
175176
},
@@ -218,6 +219,18 @@
218219
"packageNameTemplate": "https://github.com/ossf/osv-schema",
219220
"datasourceTemplate": "git-refs",
220221
"versioningTemplate": "git"
222+
},
223+
{
224+
"customType": "regex",
225+
"managerFilePatterns": [
226+
"osv/models.py"
227+
],
228+
"matchStrings": [
229+
"SCHEMA_VERSION\\s*=\\s*'(?<currentValue>.*)'"
230+
],
231+
"packageNameTemplate": "ossf/osv-schema",
232+
"datasourceTemplate": "github-tags",
233+
"versioningTemplate": "semver"
221234
}
222235
],
223236
"ignorePaths": ["docker/poetry/requirements.txt"]

0 commit comments

Comments
 (0)