debian-bootc-base-images/renovate.json
Miguel Martín aabbd950b6
Use the 'branch' auto merge type in renovate's configuration.
Instead of crating MRs, renovate will:

- Create the branch, wait for test results
- Rebase it any time it gets out of date with the base branch
- Automerge the branch commit if it's:
    (a) up-to-date with the base branch, and
    (b) passing all tests
- As a backup, raise a PR only if either:
    (a) tests fail, or
    (b) tests remain pending for too long (default: 24 hours)

Resolves #62

Signed-off-by: Miguel Martín <mmartinv@redhat.com>
2025-06-27 15:37:01 +02:00

102 lines
2.6 KiB
JSON

{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>platform-engineering-org/.github"
],
"dependencyDashboard": true,
"automergeType": "branch",
"tekton": {
"additionalBranchPrefix": "",
"includePaths": [
".tekton/**"
],
"managerFilePatterns": [
"/\\.ya?ml$/"
],
"packageRules": [
{
"matchPackageNames": [
"/^quay.io/bootc-devel/tekton-catalog//"
],
"enabled": true,
"groupName": "Konflux references",
"branchPrefix": "renovate/konflux/references/",
"group": {
"branchTopic": "{{{baseBranch}}}",
"commitMessageTopic": "{{{groupName}}}"
},
"commitMessageTopic": "Konflux references",
"prBodyColumns": [
"Package",
"Change",
"Notes"
],
"prBodyTemplate": "{{{header}}}{{{table}}}{{{notes}}}{{{changelogs}}}{{{configDescription}}}{{{controls}}}{{{footer}}}",
"recreateWhen": "always",
"rebaseWhen": "behind-base-branch"
}
]
},
"customManagers": [
{
"customType": "regex",
"description": [
"Update 'REPOS_IMAGE' and 'BUILDER_IMAGE' in tekton files"
],
"managerFilePatterns": [
"/.tekton/.*\\.ya?ml$/"
],
"matchStrings": [
"REPOS_IMAGE=(?<depName>.*):(?<currentValue>.*)@(?<currentDigest>.*)\\n",
"BUILDER_IMAGE=(?<depName>.*):(?<currentValue>.*)@(?<currentDigest>.*)\\n"
],
"versioningTemplate": "regex:(?<compatibility>.*)-(?<patch>\\d{8})(\\.n)?\\.(?<build>\\d)",
"datasourceTemplate": "docker"
}
],
"baseBranches": [
"main",
"f40",
"f41"
],
"packageRules": [
{
"matchPackageNames": [
"/quay.io\/bootc-devel\/fedora-bootc-.*-compose/"
],
"automerge": true
},
{
"matchPackageNames": [
"/quay.io\/bootc-devel\/fedora-bootc-rawhide-compose/"
],
"groupName": "Fedora rawhide compose dependencies",
"groupSlug": "fedora-rawhide-compose-dependencies"
},
{
"matchPackageNames": [
"/quay.io\/bootc-devel\/fedora-bootc-42-compose/"
],
"groupName": "Fedora 42 compose dependencies",
"groupSlug": "fedora-42-compose-dependencies"
},
{
"matchPackageNames": [
"quay.io/fedora/fedora"
],
"allowedVersions": "=40",
"matchBaseBranches": [
"f40"
]
},
{
"matchPackageNames": [
"quay.io/fedora/fedora"
],
"allowedVersions": "=41",
"matchBaseBranches": [
"f41"
]
}
]
}