Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/tooling/renovate.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
19 changes: 18 additions & 1 deletion renovate/devkit-pin.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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": [
Expand All @@ -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"]
}
]
}
Loading