Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add question to convert readme fragments to markdown #228

Merged
merged 1 commit into from
Nov 9, 2023
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
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