Skip to content

Commit

Permalink
Add question to convert readme fragments to markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Nov 8, 2023
1 parent 9a77414 commit 8514289
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions src/.pre-commit-config.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 8514289

Please sign in to comment.