Skip to content

Commit

Permalink
Add renovate configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
danduk82 committed Oct 25, 2024
1 parent 5c6fcc4 commit 1726e56
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 12 deletions.
71 changes: 71 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
extends: ['config:recommended'],
timezone: 'Europe/Zurich',
schedule: 'after 5pm on the first day of the month',
labels: ['dependencies'],
separateMajorMinor: true,
separateMinorPatch: true,
prHourlyLimit: 0,
prConcurrentLimit: 0,
html: {
fileMatch: ['\\.html?$', '\\.html?.mako$'],
},
lockFileMaintenance: {
enabled: true,
automerge: true,
schedule: 'after 5pm on the first day of the month',
},
baseBranches: ['v3.0.0','master'],
regexManagers: [
/** Do update on the schema present in the ci/config.yaml */
{
fileMatch: ['^ci/config\\.yaml$'],
matchStrings: [
'.*https://raw\\.githubusercontent\\.com/(?<depName>[^\\s]+)/(?<currentValue>[0-9\\.]+)/.*',
],
datasourceTemplate: 'github-tags',
}
],
packageRules: [
/** Auto merge the dev dependency update */
{
matchDepTypes: ['devDependencies'],
automerge: true,
},
/** Group and auto merge the patch updates */
{
matchUpdateTypes: ['patch'],
groupName: 'all patch versions',
automerge: true,
},
/** Group and auto merge the minor updates */
{
matchUpdateTypes: ['minor'],
groupName: 'all minor versions',
automerge: true,
},
/** Accept only the patch on stabilization branches */
{
matchBaseBranches: ['/^v[0-9]+\\.[0-9]+\\.[0-9]+$/'],
matchUpdateTypes: ['major', 'minor', 'pin', 'digest', 'lockFileMaintenance', 'rollback', 'bump'],
enabled: false,
}
/** Group and auto merge the CI dependencies */
{
matchFileNames: ['.github/**', 'ci/**'],
groupName: 'CI dependencies',
automerge: true,
},
/** Packages published very recently are not pushed to stabilization branches for security reasons */
{
matchBaseBranches: ['/^v[0-9]+\\.[0-9]+\\.[0-9]+$/'],
minimumReleaseAge: '7 days',
},
/** Ungroup Python dependencies */
{
matchDepNames: ['python'],
groupName: 'Python',
},
],
}
13 changes: 1 addition & 12 deletions ci/config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
# Config of c2cciutils
# jsonschema of this file : https://github.com/camptocamp/c2cciutils/blob/master/c2cciutils/schema.json

checks:
required_workflows: False
black: False
black_config: False
versions: False
codespell: False
dependabot_config: False
editorconfig: False
prettier: False
# yaml-language-server: $schema=https://raw.githubusercontent.com/camptocamp/c2cciutils/1.6.18/c2cciutils/schema.json

# Map GH branches to Dockerhub tags
version:
Expand Down

0 comments on commit 1726e56

Please sign in to comment.