From bd7464b80705a2b26a1f902ba9f1ff270680239f Mon Sep 17 00:00:00 2001 From: Dafydd Jones Date: Tue, 6 May 2025 15:40:59 +0100 Subject: [PATCH] ci(renovate): initial commit of basic Renovate config * Enable only the `gitlab-ci` manager for now. `automergeStrategy: 'merge-commit'` as Renovate defaults to `squash` which conflicts with `semantic-release` (commit messages are lost). Schedule to generate PRs only on Tuesdays to prevent a noisy repository. Custom Docker images are published on Mondays. * Remove Renovate config from converted formulas as this specific config is tailored for the `template-formula`. --- .github/renovate.json5 | 14 ++++++++++++++ .pre-commit-config.yaml | 5 +++++ bin/convert-formula.sh | 4 +++- 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/renovate.json5 diff --git a/.github/renovate.json5 b/.github/renovate.json5 new file mode 100644 index 00000000..2a10ded1 --- /dev/null +++ b/.github/renovate.json5 @@ -0,0 +1,14 @@ +{ + $schema: 'https://docs.renovatebot.com/renovate-schema.json', + enabledManagers: [ + 'gitlabci', + ], + extends: [ + 'config:best-practices', + ], + automergeStrategy: 'merge-commit', + dependencyDashboardTitle: 'Renovate Dashboard', + schedule: [ + '* * * * 2', // Tuesdays only + ], +} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 01e4346d..fc8759fc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -93,3 +93,8 @@ repos: docs/index.rst| )$ additional_dependencies: [pygments==2.16.1] + - repo: https://github.com/renovatebot/pre-commit-hooks + rev: 40.5.0 + hooks: + - id: renovate-config-validator + name: Check Renovate config with renovate-config-validator diff --git a/bin/convert-formula.sh b/bin/convert-formula.sh index b740adfa..ef461e34 100755 --- a/bin/convert-formula.sh +++ b/bin/convert-formula.sh @@ -56,7 +56,9 @@ convert_formula() { | git commit-tree 'HEAD^{tree}')" git rm --quiet bin/convert-formula.sh AUTHORS.md CHANGELOG.md \ docs/_static/css/custom.css docs/AUTHORS.rst docs/CHANGELOG.rst \ - docs/conf.py docs/CONTRIBUTING_DOCS.rst docs/index.rst + docs/conf.py docs/CONTRIBUTING_DOCS.rst docs/index.rst \ + .github/renovate.json5 \ + && : tag_out=$(git tag --list | xargs git tag --delete) if [ "${DEBUG:-false}" = "true" ]; then echo "$tag_out"