Skip to content

Commit

Permalink
Display name and description in the template
Browse files Browse the repository at this point in the history
  • Loading branch information
paudrow committed Feb 22, 2024
1 parent 549fd4c commit 7708136
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/yatm_v2/templates/github_issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,22 @@

## Process
{% for step in steps %}
{% if steps.len() > 1 %}
{% match step.name %}
{% when Some with (name) %}
{% if steps.len() > 1 %}
### Step {{ loop.index }} - {{name}}
{% else %}
### {{name}}
{% endif %}
{% when None %}
### Step {{ loop.index }}
{% endif %}
{% endmatch %}

{% match step.description %}
{% when Some with (description) %}
{{description}}
{% when None %}
{% endmatch %}

{% if step.action.len() > 0 %}
{% if step.action.len() == 1 %}
Expand Down

0 comments on commit 7708136

Please sign in to comment.