Skip to content

Commit

Permalink
Merge pull request #228 from acsone/convert-readme-to-md
Browse files Browse the repository at this point in the history
Add question to convert readme fragments to markdown
  • Loading branch information
sbidoul authored Nov 9, 2023
2 parents 9a77414 + 8514289 commit e7b6555
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 e7b6555

Please sign in to comment.