Skip to content

Commit bd7464b

Browse files
committed
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`.
1 parent e3d3c12 commit bd7464b

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

.github/renovate.json5

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3+
enabledManagers: [
4+
'gitlabci',
5+
],
6+
extends: [
7+
'config:best-practices',
8+
],
9+
automergeStrategy: 'merge-commit',
10+
dependencyDashboardTitle: 'Renovate Dashboard',
11+
schedule: [
12+
'* * * * 2', // Tuesdays only
13+
],
14+
}

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,8 @@ repos:
9393
docs/index.rst|
9494
)$
9595
additional_dependencies: [pygments==2.16.1]
96+
- repo: https://github.com/renovatebot/pre-commit-hooks
97+
rev: 40.5.0
98+
hooks:
99+
- id: renovate-config-validator
100+
name: Check Renovate config with renovate-config-validator

bin/convert-formula.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ convert_formula() {
5656
| git commit-tree 'HEAD^{tree}')"
5757
git rm --quiet bin/convert-formula.sh AUTHORS.md CHANGELOG.md \
5858
docs/_static/css/custom.css docs/AUTHORS.rst docs/CHANGELOG.rst \
59-
docs/conf.py docs/CONTRIBUTING_DOCS.rst docs/index.rst
59+
docs/conf.py docs/CONTRIBUTING_DOCS.rst docs/index.rst \
60+
.github/renovate.json5 \
61+
&& :
6062
tag_out=$(git tag --list | xargs git tag --delete)
6163
if [ "${DEBUG:-false}" = "true" ]; then
6264
echo "$tag_out"

0 commit comments

Comments
 (0)