mirror of
https://github.com/thegeeklab/renovate-presets.git
synced 2024-11-14 18:30:40 +00:00
63 lines
2.1 KiB
JSON
63 lines
2.1 KiB
JSON
{
|
|
"$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"
|
|
],
|
|
"gomod": {
|
|
"postUpdateOptions": ["gomodUpdateImportPaths", "gomodTidy"]
|
|
},
|
|
"packageRules": [
|
|
{
|
|
"description": "Automerge golang dev dependencies",
|
|
"groupName": "golang devDeps non-major",
|
|
"extends": ["schedule:weekly"],
|
|
"matchDatasources": ["github-releases"],
|
|
"matchPackageNames": ["mvdan/gofumpt", "golangci/golangci-lint"],
|
|
"matchUpdateTypes": ["pin", "digest", "patch", "minor"],
|
|
"automerge": true
|
|
},
|
|
{
|
|
"description": "Schedule high frequency packages",
|
|
"groupName": "golang highFeq non-major",
|
|
"extends": ["schedule:weekly"],
|
|
"matchDatasources": ["go"],
|
|
"matchPackagePatterns": ["urfave/cli"],
|
|
"matchUpdateTypes": ["pin", "digest", "patch", "minor"]
|
|
},
|
|
{
|
|
"description": "Enable golang version updates",
|
|
"matchDatasources": ["golang-version"],
|
|
"rangeStrategy": "bump"
|
|
},
|
|
{
|
|
"description": "Disable golang toolchain updates",
|
|
"matchManagers": ["gomod"],
|
|
"matchDepTypes": ["toolchain"],
|
|
"enabled": false
|
|
},
|
|
{
|
|
"description": "Extract version from xgo container tags",
|
|
"matchDatasources": ["docker"],
|
|
"matchPackagePatterns": ["techknowlogick/xgo"],
|
|
"versioning": "regex:^go-(?<major>\\d+)\\.(?<minor>\\d+)\\.x$"
|
|
},
|
|
{
|
|
"description": "Group golang version updates",
|
|
"groupName": "update golang",
|
|
"commitMessage": "{{{commitMessagePrefix}}} {{#if groupName}}{{{groupName}}}{{else}}update {{{depName}}}{{/if}} {{updateType}} version",
|
|
"matchDatasources": ["docker", "golang-version"],
|
|
"matchUpdateTypes": ["minor", "major"],
|
|
"matchPackagePatterns": ["techknowlogick/xgo", "golang", "go"]
|
|
},
|
|
{
|
|
"groupName": "Autmerge update go patch version",
|
|
"matchDatasources": ["golang-version"],
|
|
"matchUpdateTypes": ["patch"],
|
|
"matchPackagePatterns": ["go"],
|
|
"automerge": true
|
|
}
|
|
]
|
|
}
|