feat(regexp): support grafana dashboards

This commit is contained in:
2026-01-06 13:13:43 +01:00
parent a481dd8277
commit d4b3feb347

View File

@@ -1,17 +1,26 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"customDatasources": {
"grafana-dashboards": {
"defaultRegistryUrlTemplate": "https://grafana.com/api/dashboards/{{ packageName }}",
"format": "json",
"transformTemplates": [
"{\"releases\": [{\"version\": $string(revision)}], \"homepage\": \"https://grafana.com/dashboards/$string(id)\", \"sourceUrl\": \"https://grafana.com/dashboards/$string(id)\"}"
]
}
},
"customManagers": [ "customManagers": [
{ {
"customType": "regex", "customType": "regex",
"fileMatch": [ "fileMatch": [
"(^|/)(workflow-templates|\\.(?:github|gitea|forgejo)/(?:workflows|actions))/.+\\.ya?ml$", "(^|/)(workflow-templates|\\.(?:github|gitea|forgejo)/(?:workflows|actions))/.+\\.ya?ml$",
"(^|/)action\\.ya?ml$", "(^|/)(action|values)\\.ya?ml$",
"(^|/)Makefile$", "(^|/)Makefile$",
"(^|/)PKGBUILD$", "(^|/)PKGBUILD$",
"(^|/)[\\w-]*\\.sh$" "(^|/)[\\w-]*\\.sh$"
], ],
"matchStrings": [ "matchStrings": [
"(?:=|:)[[:blank:]]*\"?(?<currentValue>[^\"\\s]*)\"? # renovate:(?:[[:blank:]]+datasource=[\"']*(?<datasource>[^\\s\"']*)['\"]*|[[:blank:]]+depName=['\"]*(?<depName>[^\\s'\"]*)['\"]*|[[:blank:]]+packageName=['\"]*(?<packageName>[^\\s'\"]*)['\"]*|[[:blank:]]+registryUrl=['\"]*(?<registryUrl>[^\\s'\"]*)['\"]*|[[:blank:]]+updateType=['\"]*(?<updateType>[^\\s'\"]*)['\"]*|[[:blank:]]+versioning=['\"]*(?<versioning>[^\\s'\"]*)['\"]*|[[:blank:]]+extractVersion=['\"]*(?<extractVersion>[^\\s'\"]*)['\"]*)*" "\"?(?<currentValue>[\\w.]*)\"? # renovate:(?:[[:blank:]]+datasource=['\"]*(?<datasource>[^\\s\"']*)['\"]*|[[:blank:]]+depName=['\"]*(?<depName>[^\\s'\"]*)['\"]*|[[:blank:]]+packageName=['\"]*(?<packageName>[^\\s'\"]*)['\"]*|[[:blank:]]+registryUrl=['\"]*(?<registryUrl>[^\\s'\"]*)['\"]*|[[:blank:]]+updateType=['\"]*(?<updateType>[^\\s'\"]*)['\"]*|[[:blank:]]+versioning=['\"]*(?<versioning>[^\\s'\"]*)['\"]*|[[:blank:]]+extractVersion=['\"]*(?<extractVersion>[^\\s'\"]*)['\"]*)*"
] ]
} }
] ]