From f63051c0f5a3c2d26617eb95e21138d30ab3b51e Mon Sep 17 00:00:00 2001 From: chemavx Date: Wed, 20 May 2026 14:01:32 +0000 Subject: [PATCH] chore: migrate renovate config from config.js to renovate.json Eliminates JS migration warning; update RENOVATE_CONFIG_FILE accordingly. Co-Authored-By: Claude Sonnet 4.6 --- renovate/configmap-renovate.yaml | 61 +++++++++++--------------------- renovate/cronjob-renovate.yaml | 2 +- 2 files changed, 21 insertions(+), 42 deletions(-) diff --git a/renovate/configmap-renovate.yaml b/renovate/configmap-renovate.yaml index 9947a91..360bf65 100644 --- a/renovate/configmap-renovate.yaml +++ b/renovate/configmap-renovate.yaml @@ -4,44 +4,23 @@ metadata: name: renovate-config namespace: renovate data: - config.js: | - module.exports = { - platform: 'gitea', - gitAuthor: 'Renovate Bot ', - endpoint: 'https://git.chemavx.xyz/', - repositories: [ - 'chemavx/researchowl', - 'chemavx/polymarket-bot', - 'chemavx/n8n', - ], - automerge: false, - assignees: ['chemavx'], - labels: ['renovate'], - prCreation: 'not-pending', - timezone: 'Europe/Madrid', - schedule: ['after 9am and before 6pm every weekday'], - packageRules: [ - { - // Major bumps: crear PR pero no automerge, requiere revisión manual - matchUpdateTypes: ['major'], - automerge: false, - labels: ['renovate', 'major-update'], - }, - { - // Minor bumps: PR sin automerge - matchUpdateTypes: ['minor'], - automerge: false, - }, - { - // Patch bumps: automerge automático - matchUpdateTypes: ['patch'], - automerge: true, - automergeType: 'pr', - }, - { - // Imágenes del registry privado: nunca tocar (tags son commits SHA) - matchPackagePatterns: ['^git\\.chemavx\\.xyz/'], - enabled: false, - }, - ], - }; + renovate.json: | + { + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "platform": "gitea", + "endpoint": "https://git.chemavx.xyz/", + "gitAuthor": "Renovate Bot ", + "repositories": ["chemavx/researchowl", "chemavx/polymarket-bot", "chemavx/n8n"], + "automerge": false, + "assignees": ["chemavx"], + "labels": ["renovate"], + "prCreation": "not-pending", + "timezone": "Europe/Madrid", + "schedule": ["after 9am and before 6pm every weekday"], + "packageRules": [ + {"matchUpdateTypes": ["major"], "automerge": false, "labels": ["renovate", "major-update"]}, + {"matchUpdateTypes": ["minor"], "automerge": false}, + {"matchUpdateTypes": ["patch"], "automerge": true, "automergeType": "pr"}, + {"matchPackageNames": ["/^git\\.chemavx\\.xyz//"], "enabled": false} + ] + } diff --git a/renovate/cronjob-renovate.yaml b/renovate/cronjob-renovate.yaml index 9bb7cac..e4a2d76 100644 --- a/renovate/cronjob-renovate.yaml +++ b/renovate/cronjob-renovate.yaml @@ -25,7 +25,7 @@ spec: name: renovate-token key: RENOVATE_TOKEN - name: RENOVATE_CONFIG_FILE - value: /opt/renovate/config.js + value: /opt/renovate/renovate.json - name: LOG_LEVEL value: info resources: