forgejo-renovate/base.json
Michael Kriese 34a09fb11e
All checks were successful
lint / lint (base.json) (push) Successful in 5s
lint / lint (renovate.json) (push) Successful in 4s
renovate / forgejo (push) Successful in 11s
renovate / codeberg (push) Successful in 1m6s
chore(renovate): automerge digests via branch
Signed-off-by: viceice <michael.kriese@gmx.de>
2024-05-23 09:03:24 +00:00

59 lines
2.1 KiB
JSON

{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:best-practices"],
"semanticCommits": "enabled",
"automergeStrategy": "squash",
"reviewers": ["viceice"],
"packageRules": [
{
"description": "use ci scope and automerge woodpecker deps",
"matchPaths": [".forgejo/**", ".woodpecker/**"],
"semanticCommitType": "ci",
"automerge": true
},
{
"description": "Fix forgejo docker image versioning",
"matchDepNames": ["forgejo", "codeberg.org/forgejo/forgejo"],
"matchDatasources": ["docker"],
"versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)(?:-(?<build>\\d+))?(?:-(?<compatibility>.+))?$"
},
{
"description": "Fix oci helm chart commit message",
"matchDatasources": ["docker"],
"matchManagers": ["helmv3"],
"commitMessageTopic": "helm release {{depName}}"
},
{
"description": "v prefix workaround for action updates",
"matchDepTypes": ["action"],
"versioning": "semver-coerced"
},
{
"description": "don't pin helm deps",
"matchFileNames": ["Chart.yaml"],
"pinDigests": false
},
{
"description": "don't regex managers",
"matchManagers": ["regex"],
"pinDigests": false
},
{
"description": "autmerge digests via branch to reduce noise",
"matchUpdateTypes": ["digest"],
"automergeType": "branch"
}
],
"customManagers": [
{
"description": "Update `version:` and `_VERSION:` variables in forgejo workflows",
"customType": "regex",
"fileMatch": ["^.forgejo/(?:workflows|actions)/.+\\.ya?ml$"],
"matchStrings": [
"\\s+version: (?<currentValue>.+?) # renovate: datasource=(?<datasource>.+?) depName=(?<depName>.+?)(?: (?:packageName|lookupName)=(?<packageName>.+?))?(?: versioning=(?<versioning>.+?))?\\s",
"\\s*[A-Z_]+?_VERSION: (?<currentValue>.+?) # renovate: datasource=(?<datasource>.+?) depName=(?<depName>.+?)(?: (?:packageName|lookupName)=(?<packageName>.+?))?(?: versioning=(?<versioning>.+?))?\\s"
]
}
]
}