port generic Renovate options from gitea's renovate.json5 (#545)
Ports repo-agnostic options from gitea/gitea's `renovate.json5`: - `default.json`: `minimumReleaseAge: "5 days"`, `configMigration: true` - `go-deps.json`: `gomodUpdateImportPaths` postUpdateOption + immediate Go toolchain bumps (opt-in preset, no-op without `go.mod`) - `npm-deps.json`: `pnpmDedupe` postUpdateOption (no-op for non-pnpm repos) Reviewed-on: https://gitea.com/gitea/renovate-config/pulls/545 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: silverwind <me@silverwind.io> Co-committed-by: silverwind <me@silverwind.io>
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"extends": ["config:recommended","local>gitea/renovate-config:workflow-deps"],
|
"extends": ["config:recommended","local>gitea/renovate-config:workflow-deps"],
|
||||||
|
"configMigration": true,
|
||||||
|
"minimumReleaseAge": "5 days",
|
||||||
"semanticCommits": "enabled",
|
"semanticCommits": "enabled",
|
||||||
"automergeStrategy": "auto",
|
"automergeStrategy": "auto",
|
||||||
"platformAutomerge": false
|
"platformAutomerge": false
|
||||||
|
|||||||
+11
-1
@@ -4,12 +4,22 @@
|
|||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
"postUpdateOptions": [
|
"postUpdateOptions": [
|
||||||
"gomodTidy"
|
"gomodTidy",
|
||||||
|
"gomodUpdateImportPaths"
|
||||||
],
|
],
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
{
|
{
|
||||||
"groupName": "Go dependencies",
|
"groupName": "Go dependencies",
|
||||||
"matchManagers": ["gomod"]
|
"matchManagers": ["gomod"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Bump the Go toolchain version immediately",
|
||||||
|
"matchManagers": ["gomod"],
|
||||||
|
"matchDepNames": ["go"],
|
||||||
|
"matchDepTypes": ["golang"],
|
||||||
|
"rangeStrategy": "bump",
|
||||||
|
"schedule": ["at any time"],
|
||||||
|
"minimumReleaseAge": "0"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
"npm": {
|
"npm": {
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
|
"postUpdateOptions": [
|
||||||
|
"pnpmDedupe"
|
||||||
|
],
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
{
|
{
|
||||||
"groupName": "npm dependencies",
|
"groupName": "npm dependencies",
|
||||||
|
|||||||
Reference in New Issue
Block a user