2021-04-25 11:49:02 +00:00
|
|
|
{
|
|
|
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
|
|
"description": ["Preset for use with golang repositories"],
|
|
|
|
"extends": [
|
|
|
|
"github>thegeeklab/renovate-presets:base",
|
|
|
|
"github>thegeeklab/renovate-presets:docker"
|
2021-04-25 12:04:04 +00:00
|
|
|
],
|
|
|
|
"gomod": {
|
|
|
|
"postUpdateOptions": ["gomodUpdateImportPaths", "gomodTidy"]
|
2022-04-24 12:39:42 +00:00
|
|
|
},
|
|
|
|
"packageRules": [
|
|
|
|
{
|
2023-03-20 13:09:00 +00:00
|
|
|
"description": "Automerge golang dev dependencies",
|
|
|
|
"groupName": "golang devDeps non-major",
|
2024-02-15 11:16:19 +00:00
|
|
|
"extends": ["schedule:weekly"],
|
2022-04-24 12:39:42 +00:00
|
|
|
"matchDatasources": ["github-releases"],
|
2024-11-25 08:27:27 +00:00
|
|
|
"matchPackageNames": [
|
2024-11-25 10:26:14 +00:00
|
|
|
"github.com/stretchr/testify",
|
2024-11-25 08:27:27 +00:00
|
|
|
"mvdan/gofumpt",
|
|
|
|
"golangci/golangci-lint"
|
|
|
|
],
|
2022-04-24 12:39:42 +00:00
|
|
|
"matchUpdateTypes": ["pin", "digest", "patch", "minor"],
|
2024-02-15 11:16:19 +00:00
|
|
|
"automerge": true
|
2022-04-26 07:50:20 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"description": "Schedule high frequency packages",
|
2023-03-20 13:09:00 +00:00
|
|
|
"groupName": "golang highFeq non-major",
|
2024-02-15 11:16:19 +00:00
|
|
|
"extends": ["schedule:weekly"],
|
2022-04-26 07:50:20 +00:00
|
|
|
"matchDatasources": ["go"],
|
|
|
|
"matchPackagePatterns": ["urfave/cli"],
|
2024-01-23 08:52:10 +00:00
|
|
|
"matchUpdateTypes": ["pin", "digest", "patch", "minor"]
|
2024-10-02 13:42:36 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"description": "Enable golang version updates",
|
|
|
|
"matchDatasources": ["golang-version"],
|
|
|
|
"rangeStrategy": "bump"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"description": "Disable golang toolchain updates",
|
2024-10-02 20:46:17 +00:00
|
|
|
"matchManagers": ["gomod"],
|
2024-10-02 13:42:36 +00:00
|
|
|
"matchDepTypes": ["toolchain"],
|
|
|
|
"enabled": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"description": "Extract version from xgo container tags",
|
|
|
|
"matchDatasources": ["docker"],
|
|
|
|
"matchPackagePatterns": ["techknowlogick/xgo"],
|
2024-11-07 08:57:35 +00:00
|
|
|
"versioning": "regex:^go-(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)$"
|
2024-10-02 21:26:31 +00:00
|
|
|
},
|
|
|
|
{
|
2024-11-07 08:09:42 +00:00
|
|
|
"description": "Group golang version updates",
|
2024-11-07 09:05:54 +00:00
|
|
|
"groupName": "golang version",
|
2024-10-02 21:26:31 +00:00
|
|
|
"matchDatasources": ["docker", "golang-version"],
|
2024-11-07 08:09:42 +00:00
|
|
|
"matchUpdateTypes": ["minor", "major"],
|
2024-10-02 21:30:02 +00:00
|
|
|
"matchPackagePatterns": ["techknowlogick/xgo", "golang", "go"]
|
2024-11-07 08:09:42 +00:00
|
|
|
},
|
|
|
|
{
|
2024-11-07 08:59:36 +00:00
|
|
|
"description": "Automerge go patch version updates",
|
2024-11-07 08:57:35 +00:00
|
|
|
"extends": ["schedule:weekly"],
|
2024-11-07 09:05:54 +00:00
|
|
|
"groupName": "golang patch version",
|
2024-11-07 08:57:35 +00:00
|
|
|
"matchDatasources": ["docker", "golang-version"],
|
2024-11-07 08:09:42 +00:00
|
|
|
"matchUpdateTypes": ["patch"],
|
2024-11-07 08:59:36 +00:00
|
|
|
"matchPackagePatterns": ["techknowlogick/xgo", "golang", "go"],
|
|
|
|
"automerge": true
|
2022-04-24 12:39:42 +00:00
|
|
|
}
|
|
|
|
]
|
2021-04-25 11:49:02 +00:00
|
|
|
}
|