From 75b2d0c272f647962759c4bb2aface723cd321db Mon Sep 17 00:00:00 2001 From: Watson Yuuma Sato Date: Fri, 5 Sep 2025 17:34:01 +0200 Subject: [PATCH] Add tekton specific config to renovate --- renovate.json | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index 3302fc93..0a998563 100644 --- a/renovate.json +++ b/renovate.json @@ -1,4 +1,51 @@ { "branchPrefix": "kflux/mintmaker/", - "schedule": ["at any time"] + "schedule": ["at any time"], + "tekton": { + "managerFilePatterns": [ + "/\\.yaml$/", + "/\\.yml$/" + ], + "includePaths": [ + ".tekton/**" + ], + "packageRules": [ + { + "matchPackageNames": [ + "/^quay.io/redhat-appstudio-tekton-catalog//", + "/^quay.io/konflux-ci/tekton-catalog//" + ], + "enabled": true, + "groupName": "Konflux references", + "branchPrefix": "klux/references/", + "additionalBranchPrefix": "", + "group": { + "branchTopic": "{{{baseBranch}}}", + "commitMessageTopic": "{{{groupName}}}" + }, + "commitMessageTopic": "Konflux references", + "prBodyColumns": [ + "Package", + "Change", + "Notes" + ], + "prBodyDefinitions": { + "Notes": "{{#if (or (containsString updateType 'minor') (containsString updateType 'major'))}}:warning:[migration](https://github.com/redhat-appstudio/build-definitions/blob/main/task/{{{replace '^quay.io/(redhat-appstudio-tekton-catalog|konflux-ci/tekton-catalog)/task-' '' packageName}}}/{{{newVersion}}}/MIGRATION.md):warning:{{/if}}" + }, + "prBodyTemplate": "{{{header}}}{{{table}}}{{{notes}}}{{{changelogs}}}{{{configDescription}}}{{{controls}}}{{{footer}}}", + "recreateWhen": "always", + "rebaseWhen": "behind-base-branch" + } + ], + "schedule": [ + "at any time" + ], + "postUpgradeTasks": { + "commands": [ + "pipeline-migration-tool migrate -f \"$RENOVATE_POST_UPGRADE_COMMAND_DATA_FILE\"" + ], + "executionMode": "branch", + "dataFileTemplate": "[{{#each upgrades}}{\"depName\": \"{{{depName}}}\", \"currentValue\": \"{{{currentValue}}}\", \"currentDigest\": \"{{{currentDigest}}}\", \"newValue\": \"{{{newValue}}}\", \"newDigest\": \"{{{newDigest}}}\", \"packageFile\": \"{{{packageFile}}}\", \"parentDir\": \"{{{parentDir}}}\", \"depTypes\": [{{#each depTypes}}\"{{{this}}}\"{{#unless @last}},{{\/unless}}{{\/each}}]}{{#unless @last}},{{\/unless}}{{\/each}}]" + } + } }