diff --git a/.github/renovate.json b/.github/renovate.json index 6668de3d..c80c5a28 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -9,19 +9,62 @@ "automergeType": "pr", "automerge": true, "enabledManagers": ["dockerfile", "tekton"], - "packageRules": [ - { - "matchUpdateTypes": ["*"], - "enabled": false - }, - { - "matchUpdateTypes": ["digest"], - "enabled": true - }, - { - "matchFileNames": ["*Dockerfile.konflux*", ".tekton/**"], - "enabled": true - } - ], + "dockerfile": { + "enabled": true, + "additionalBranchPrefix": "{{baseBranch}}/", + "branchPrefix": "konflux/mintmaker/", + "packageRules": [ + { + "matchUpdateTypes": ["*"], + "enabled": false + }, + { + "matchUpdateTypes": ["digest"], + "enabled": true + }, + { + "matchFileNames": ["*Dockerfile.konflux*"], + "enabled": true + } + ] + }, + "tekton": { + "fileMatch": [ + "\\.yaml$", + "\\.yml$" + ], + "includePaths": [ + ".tekton/**" + ], + "packageRules": [ + { + "matchPackagePatterns": [ + "^quay.io/redhat-appstudio-tekton-catalog/", + "^quay.io/konflux-ci/tekton-catalog/" + ], + "enabled": true, + "groupName": "Konflux references", + "branchPrefix": "konflux/references/", + "group": { + "branchTopic": "{{{baseBranch}}}", + "commitMessageTopic": "{{{groupName}}}" + }, + "commitMessageTopic": "Konflux references", + "semanticCommits": "enabled", + "prFooter": "To execute skipped test pipelines write comment `/ok-to-test`", + "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}}}{{{controls}}}{{{footer}}}", + "recreateWhen": "always", + "rebaseWhen": "behind-base-branch" + } + ] + }, "prHourlyLimit": 0 }