diff --git a/.github/renovate.json b/.github/renovate.json index 7d5f4982..7d054a44 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -2,5 +2,23 @@ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ "github>cbrgm/cbrgm//renovate/preset" + ], + "postUpdateOptions": [ + "gomodUpdateImportPaths" + ], + "customManagers": [ + { + "customType": "regex", + "fileMatch": [ + "^README\\.md$" + ], + "matchStrings": [ + "github\\.com/google/go-github/(?v\\d+)/github" + ], + "depNameTemplate": "google/go-github", + "datasourceTemplate": "github-tags", + "versioningTemplate": "regex:^v(?\\d+)(\\.(?\\d+))?(\\.(?\\d+))?$", + "autoReplaceStringTemplate": "github.com/google/go-github/v{{{newMajor}}}/github" + } ] }