Teach renovate about hakDependencies (#33147)

* Teach renovate about hakDependencies

* Update testcontainers-docker slug
This commit is contained in:
Michael Telatynski 2026-04-15 15:56:49 +01:00 committed by GitHub
parent 421fbe4a52
commit e8b4b9b6ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

15
.github/renovate.json vendored
View File

@ -5,8 +5,8 @@
"packageRules": [
{
"groupName": "testcontainers docker digests",
"groupSlug": "{{manager}}-docker-digests",
"matchManagers": ["custom.regex"],
"groupSlug": "testcontainers-docker",
"matchDepTypes": ["testcontainers-docker"],
"matchPackageNames": ["*"]
}
],
@ -17,7 +17,16 @@
"versioningTemplate": "loose",
"description": "Update testcontainers docker digests",
"managerFilePatterns": ["**/testcontainers/*.ts"],
"matchStrings": ["\\s+\"(?<depName>[^@]+):(?<currentValue>[^@]+)@(?<currentDigest>sha256:[a-f0-9]+)\""]
"matchStrings": ["\\s+\"(?<depName>[^@]+):(?<currentValue>[^@]+)@(?<currentDigest>sha256:[a-f0-9]+)\""],
"depTypeTemplate": "testcontainers-docker"
},
{
"customType": "jsonata",
"fileMatch": ["(^|/)package\\.json$"],
"fileFormat": "json",
"matchStrings": ["hakDependencies.$each(function($v, $k) { { 'packageName': $k, 'currentValue': $v } })"],
"datasourceTemplate": "npm",
"depTypeTemplate": "hak"
}
]
}