From a6e0a3fa8c5a4453b100c4dd62009e9f785ab779 Mon Sep 17 00:00:00 2001 From: Watson Yuuma Sato Date: Thu, 4 Sep 2025 17:13:59 +0200 Subject: [PATCH] Use different branch prefix for mintmaker updates As we are using konflux branch to pull changes from upstream, we need to use a different branch for mintmaker. This update the schedule too, so that it doesn't just run on weekends. --- renovate.json | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000000..0a998563a6 --- /dev/null +++ b/renovate.json @@ -0,0 +1,51 @@ +{ + "branchPrefix": "kflux/mintmaker/", + "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}}]" + } + } +}