Migrate config renovate.json

This commit is contained in:
Renovate Bot 2024-07-27 06:09:28 +00:00
parent d9c82089ee
commit a74f3832a5

View file

@ -22,11 +22,17 @@
], ],
"semanticCommits": "disabled", "semanticCommits": "disabled",
"automergeStrategy": "merge-commit", "automergeStrategy": "merge-commit",
"postUpdateOptions": ["gomodTidy", "gomodUpdateImportPaths", "npmDedupe"], "postUpdateOptions": [
"gomodTidy",
"gomodUpdateImportPaths",
"npmDedupe"
],
"prConcurrentLimit": 10, "prConcurrentLimit": 10,
"internalChecksFilter": "strict", "internalChecksFilter": "strict",
"osvVulnerabilityAlerts": true, "osvVulnerabilityAlerts": true,
"labels": ["dependency-upgrade"], "labels": [
"dependency-upgrade"
],
"packageRules": [ "packageRules": [
{ {
"description": "Require approval for go and python minor version", "description": "Require approval for go and python minor version",
@ -38,7 +44,9 @@
"docker.io/library/golang", "docker.io/library/golang",
"mcr.microsoft.com/devcontainers/go" "mcr.microsoft.com/devcontainers/go"
], ],
"matchUpdateTypes": ["minor"], "matchUpdateTypes": [
"minor"
],
"dependencyDashboardApproval": true "dependencyDashboardApproval": true
}, },
{ {
@ -57,22 +65,30 @@
"github.com/google/pprof", "github.com/google/pprof",
"github.com/golangci/misspell/cmd/misspell" "github.com/golangci/misspell/cmd/misspell"
], ],
"extends": ["schedule:quarterly"] "extends": [
"schedule:quarterly"
]
}, },
{ {
"description": "elasticsearch CI images are published about once a month and do not use semantic versioning or short tags", "description": "elasticsearch CI images are published about once a month and do not use semantic versioning or short tags",
"matchDepNames": ["elasticsearch"], "matchDepNames": [
"extends": ["schedule:quarterly"] "elasticsearch"
],
"extends": [
"schedule:quarterly"
]
}, },
{ {
"description": "devcontainer is an optional tool used by some Forgejo contributors when working on the codebase", "description": "devcontainer is an optional tool used by some Forgejo contributors when working on the codebase",
"matchPackagePrefixes": [
"ghcr.io/devcontainers/features/",
"ghcr.io/devcontainers-contrib/features/"
],
"groupName": "devcontainer packages", "groupName": "devcontainer packages",
"extends": ["schedule:quarterly"], "extends": [
"automerge": true "schedule:quarterly"
],
"automerge": true,
"matchPackageNames": [
"ghcr.io/devcontainers/features/{/,}**",
"ghcr.io/devcontainers-contrib/features/{/,}**"
]
}, },
{ {
"description": "Group golang packages", "description": "Group golang packages",
@ -86,26 +102,42 @@
}, },
{ {
"description": "Group nodejs packages", "description": "Group nodejs packages",
"matchDepNames": ["node", "docker.io/node", "docker.io/library/node"], "matchDepNames": [
"node",
"docker.io/node",
"docker.io/library/node"
],
"groupName": "nodejs packages", "groupName": "nodejs packages",
"versionCompatibility": "^(?<version>[^-]+)(?<compatibility>-.*)?$", "versionCompatibility": "^(?<version>[^-]+)(?<compatibility>-.*)?$",
"versioning": "node" "versioning": "node"
}, },
{ {
"description": "Automerge renovate updates", "description": "Automerge renovate updates",
"matchDatasources": ["docker"], "matchDatasources": [
"matchPackageNames": ["ghcr.io/visualon/renovate"], "docker"
"matchUpdateTypes": ["minor", "patch", "digest"], ],
"matchPackageNames": [
"ghcr.io/visualon/renovate"
],
"matchUpdateTypes": [
"minor",
"patch",
"digest"
],
"automerge": true "automerge": true
}, },
{ {
"description": "x/tools/* are used in the CI only and upgraded together", "description": "x/tools/* are used in the CI only and upgraded together",
"matchPackagePrefixes": [ "matchUpdateTypes": [
"golang.org/x/tools" "minor",
"patch",
"digest"
], ],
"matchUpdateTypes": ["minor", "patch", "digest"],
"automerge": true, "automerge": true,
"groupName": "x/tools" "groupName": "x/tools",
"matchPackageNames": [
"golang.org/x/tools{/,}**"
]
}, },
{ {
"description": "Split minor and patch updates", "description": "Split minor and patch updates",
@ -123,15 +155,27 @@
}, },
{ {
"description": "Automerge patch updates", "description": "Automerge patch updates",
"matchDepNames": ["vue", "github.com/urfave/cli/v2", "swagger-ui-dist"], "matchDepNames": [
"matchUpdateTypes": ["patch"], "vue",
"github.com/urfave/cli/v2",
"swagger-ui-dist"
],
"matchUpdateTypes": [
"patch"
],
"automerge": true "automerge": true
}, },
{ {
"description": "Update renovate with higher prio to come through rate limit", "description": "Update renovate with higher prio to come through rate limit",
"matchDatasources": ["docker"], "matchDatasources": [
"matchPackageNames": ["ghcr.io/visualon/renovate"], "docker"
"extends": ["schedule:weekly"], ],
"matchPackageNames": [
"ghcr.io/visualon/renovate"
],
"extends": [
"schedule:weekly"
],
"prPriority": 10, "prPriority": 10,
"groupName": "renovate" "groupName": "renovate"
}, },
@ -143,19 +187,30 @@
"docker.io/golang", "docker.io/golang",
"docker.io/library/golang" "docker.io/library/golang"
], ],
"matchUpdateTypes": ["patch"], "matchUpdateTypes": [
"patch"
],
"prPriority": 10, "prPriority": 10,
"schedule": ["at any time"] "schedule": [
"at any time"
]
}, },
{ {
"description": "Disable actions/cascading-pr for now <https://github.com/renovatebot/renovate/issues/28120>", "description": "Disable actions/cascading-pr for now <https://github.com/renovatebot/renovate/issues/28120>",
"matchDepNames": ["actions/cascading-pr"], "matchDepNames": [
"matchManagers": ["github-actions"], "actions/cascading-pr"
],
"matchManagers": [
"github-actions"
],
"enabled": false "enabled": false
}, },
{ {
"description": "Automerge some packages when CI succeeds", "description": "Automerge some packages when CI succeeds",
"extends": ["packages:linters", "packages:test"], "extends": [
"packages:linters",
"packages:test"
],
"matchDepNames": [ "matchDepNames": [
"github.com/editorconfig-checker/editorconfig-checker/v2/cmd/editorconfig-checker", "github.com/editorconfig-checker/editorconfig-checker/v2/cmd/editorconfig-checker",
"github.com/golangci/golangci-lint/cmd/golangci-lint", "github.com/golangci/golangci-lint/cmd/golangci-lint",
@ -168,38 +223,50 @@
"vite-string-plugin", "vite-string-plugin",
"@vue/test-utils" "@vue/test-utils"
], ],
"matchPackagePrefixes": [ "automerge": true,
"@eslint-community/", "matchPackageNames": [
"@playwright/", "@eslint-community/{/,}**",
"@stoplight/spectral-cli", "@playwright/{/,}**",
"@stylistic/", "@stoplight/spectral-cli{/,}**",
"mcr.microsoft.com/devcontainers/" "@stylistic/{/,}**",
], "mcr.microsoft.com/devcontainers/{/,}**"
"automerge": true ]
}, },
{ {
"description": "Hold back on some package updates for a few days", "description": "Hold back on some package updates for a few days",
"matchDepNames": ["monaco-editor"], "matchDepNames": [
"monaco-editor"
],
"minimumReleaseAge": "30 days" "minimumReleaseAge": "30 days"
}, },
{ {
"description": "disallow `eslint-plugin-no-use-extend-native` v0.6.0+, requires eslint v9", "description": "disallow `eslint-plugin-no-use-extend-native` v0.6.0+, requires eslint v9",
"matchDepNames": ["eslint-plugin-no-use-extend-native"], "matchDepNames": [
"eslint-plugin-no-use-extend-native"
],
"allowedVersions": "<0.6.0" "allowedVersions": "<0.6.0"
}, },
{ {
"description": "Require approval for stable branches (must be last rule to override all others)", "description": "Require approval for stable branches (must be last rule to override all others)",
"matchBaseBranches": ["/^v\\d+\\.\\d+\\/forgejo$/"], "matchBaseBranches": [
"/^v\\d+\\.\\d+\\/forgejo$/"
],
"dependencyDashboardApproval": true, "dependencyDashboardApproval": true,
"schedule": ["at any time"] "schedule": [
"at any time"
]
} }
], ],
"customManagers": [ "customManagers": [
{ {
"description": "Update go-version in forgejo workflows", "description": "Update go-version in forgejo workflows",
"customType": "regex", "customType": "regex",
"fileMatch": ["^.forgejo/workflows/.+\\.yml$"], "fileMatch": [
"matchStrings": ["\\s+go-version: ['\"]?(?<currentValue>.+?)['\"]?\\s"], "^.forgejo/workflows/.+\\.yml$"
],
"matchStrings": [
"\\s+go-version: ['\"]?(?<currentValue>.+?)['\"]?\\s"
],
"depNameTemplate": "go", "depNameTemplate": "go",
"datasourceTemplate": "golang-version", "datasourceTemplate": "golang-version",
"versioningTemplate": "go-mod-directive" "versioningTemplate": "go-mod-directive"
@ -207,15 +274,21 @@
{ {
"description": "Update node-version in forgejo workflows", "description": "Update node-version in forgejo workflows",
"customType": "regex", "customType": "regex",
"fileMatch": ["^.forgejo/workflows/.+\\.yml$"], "fileMatch": [
"matchStrings": ["\\s+node-version: ['\"]?(?<currentValue>.+?)['\"]?\\s"], "^.forgejo/workflows/.+\\.yml$"
],
"matchStrings": [
"\\s+node-version: ['\"]?(?<currentValue>.+?)['\"]?\\s"
],
"depNameTemplate": "node", "depNameTemplate": "node",
"datasourceTemplate": "node-version" "datasourceTemplate": "node-version"
}, },
{ {
"description": "Update deps inside Makefile", "description": "Update deps inside Makefile",
"customType": "regex", "customType": "regex",
"fileMatch": ["^Makefile$"], "fileMatch": [
"^Makefile$"
],
"matchStrings": [ "matchStrings": [
" \\?= (?<depName>.+?)@(?<currentValue>.+?) # renovate: datasource=(?<datasource>.+?)(?: packageName=(?<packageName>.+?))?( versioning=(?<versioning>.+?))?\\s" " \\?= (?<depName>.+?)@(?<currentValue>.+?) # renovate: datasource=(?<datasource>.+?)(?: packageName=(?<packageName>.+?))?( versioning=(?<versioning>.+?))?\\s"
] ]