diff --git a/copier.yml b/copier.yml index 5be8572..a4022ab 100644 --- a/copier.yml +++ b/copier.yml @@ -194,3 +194,7 @@ github_ci_extra_env: Example: {"KEY": "VALUE"} when: *ci_is_github + +convert_readme_fragments_to_markdown: + default: "{% if odoo_version < 17.0 -%}no{% else %}yes{% endif %}" + type: bool diff --git a/src/.pre-commit-config.yaml.jinja b/src/.pre-commit-config.yaml.jinja index aca9cdf..52dc2a5 100644 --- a/src/.pre-commit-config.yaml.jinja +++ b/src/.pre-commit-config.yaml.jinja @@ -121,6 +121,9 @@ repos: - --org-name={{ org_slug }} - --repo-name={{ repo_slug }} - --if-source-changed + {%- if convert_readme_fragments_to_markdown %} + - --convert-fragments-to-markdown + {%- endif %} {%- if use_pyproject_toml and generate_requirements_txt %} - id: oca-gen-external-dependencies {%- endif %}