0
0
mirror of https://github.com/thegeeklab/renovate-presets.git synced 2024-11-15 04:40:39 +00:00
renovate-presets/golang.json

55 lines
1.9 KiB
JSON
Raw Normal View History

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"]
},
"packageRules": [
{
"description": "Automerge golang dev dependencies",
"groupName": "golang devDeps non-major",
2024-02-15 11:16:19 +00:00
"extends": ["schedule:weekly"],
"matchDatasources": ["github-releases"],
"matchPackageNames": ["mvdan/gofumpt", "golangci/golangci-lint"],
"matchUpdateTypes": ["pin", "digest", "patch", "minor"],
2024-02-15 11:16:19 +00:00
"automerge": true
},
{
"description": "Schedule high frequency packages",
"groupName": "golang highFeq non-major",
2024-02-15 11:16:19 +00:00
"extends": ["schedule:weekly"],
"matchDatasources": ["go"],
"matchPackagePatterns": ["urfave/cli"],
"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"],
"versioning": "regex:^go-(?<major>\\d+)\\.(?<minor>\\d+)\\.x$"
2024-10-02 21:26:31 +00:00
},
{
2024-10-02 21:37:13 +00:00
"groupName": "update golang",
"commitMessage": "{{{commitMessagePrefix}}} {{#if groupName}}{{{groupName}}}{{else}}update {{{depName}}}{{/if}} {{updateType}} version",
2024-10-02 21:26:31 +00:00
"matchDatasources": ["docker", "golang-version"],
"matchUpdateTypes": ["patch", "minor", "major"],
2024-10-02 21:30:02 +00:00
"matchPackagePatterns": ["techknowlogick/xgo", "golang", "go"]
}
]
2021-04-25 11:49:02 +00:00
}