diff --git a/docs/tooling/renovate.md b/docs/tooling/renovate.md index 124aa65..a20ab78 100644 --- a/docs/tooling/renovate.md +++ b/docs/tooling/renovate.md @@ -20,6 +20,13 @@ Renovate opens a pull request for each alert it can fix. consumer's exact odoo-devkit pins, in `workspace.toml` and in workflow `uses:` references, to the head commit of devkit `main` ([build-tool upgrades](build-tool-upgrades.md#moving-the-pin)). + It also moves an already exact `[repos.shared_addons].ref` pin for + `cbusillo/odoo-shared-addons` to its `main` head commit when + `[build].odoo_version` is `20.0`. Renovate reads the consumer's base branch + manifest, so landing its Odoo 20 conversion activates these updates; an + unmerged conversion does not. Odoo 19 shared-addons pins stay unchanged. + Shared-addons updates use ordinary visible pull requests, preview checks + and the merge train. Production still requires Client release acceptance. ## Repository Config diff --git a/renovate/devkit-pin.json b/renovate/devkit-pin.json index 5ae4e56..5514c2b 100644 --- a/renovate/devkit-pin.json +++ b/renovate/devkit-pin.json @@ -1,6 +1,6 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "description": "Moves a consumer's exact odoo-devkit pins to devkit main's head commit (cbusillo/odoo-devkit#248).", + "description": "Moves exact devkit pins and Odoo 20 shared-addons pins to their main head commits.", "customManagers": [ { "customType": "regex", @@ -21,6 +21,17 @@ "currentValueTemplate": "main", "packageNameTemplate": "https://github.com/{{{depName}}}", "datasourceTemplate": "git-refs" + }, + { + "customType": "jsonata", + "fileFormat": "toml", + "managerFilePatterns": ["/^workspace\\.toml$/"], + "matchStrings": [ + "$[build.odoo_version = '20.0'].repos.shared_addons[repository = 'cbusillo/odoo-shared-addons' and $exists(ref) and $contains(ref, /^[0-9a-f]{40}$/)].{'depName': repository, 'currentDigest': ref}" + ], + "currentValueTemplate": "main", + "packageNameTemplate": "https://github.com/{{{depName}}}", + "datasourceTemplate": "git-refs" } ], "packageRules": [ @@ -29,6 +40,12 @@ "matchDepNames": ["cbusillo/odoo-devkit"], "commitMessageTopic": "odoo-devkit pin", "schedule": ["at any time"] + }, + { + "matchManagers": ["custom.jsonata"], + "matchDepNames": ["cbusillo/odoo-shared-addons"], + "commitMessageTopic": "shared-addons pin", + "schedule": ["at any time"] } ] }