diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..eb34bb2 --- /dev/null +++ b/renovate.json @@ -0,0 +1,38 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "assigneesFromCodeOwners": true, + "automergeStrategy": "merge-commit", + "automergeType": "pr", + "labels": [ "renovate" ], + "packageRules": [ + { + "description": "Automatically update minor and patch versions of used drone-ci images", + "addLabels": [ "renovate/droneci", "renovate/automerge" ], + "excludePackagePatterns": [ "plugins/docker" ], + "automerge": true, + "matchManagers": "droneci", + "matchUpdateTypes": [ "minor", "patch"] + }, + { + "description": "Automatically update minor and patch versions of go modules", + "addLabels": [ "renovate/gomod", "renovate/automerge" ], + "automerge": true, + "matchBaseBranches": [ "master" ], + "matchManagers": [ "gomod" ], + "matchUpdateTypes": [ "minor", "patch" ] + }, + { + "description": "Prepare MR for major update minor of go modules", + "addLabels": [ "renovate/gomod" ], + "automerge": false, + "matchBaseBranches": [ "master" ], + "matchManagers": [ "gomod" ], + "matchUpdateTypes": [ "major" ] + } + ], + "postUpdateOptions": [ + "gomodTidy" + ], + "rebaseLabel": "renovate/rebase", + "rebaseWhen": "behind-base-branch" +}