You've already forked renovate-config
feat(regexp): support grafana dashboards
This commit is contained in:
13
regexp.json
13
regexp.json
@@ -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'\"]*)['\"]*)*"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user