From 770813692e1db4d0c988a9e622451d39e3a3a7ad Mon Sep 17 00:00:00 2001 From: Audrow Nash Date: Wed, 21 Feb 2024 23:12:08 -0600 Subject: [PATCH] Display name and description in the template --- src/yatm_v2/templates/github_issue.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/yatm_v2/templates/github_issue.md b/src/yatm_v2/templates/github_issue.md index 0cb2b86..79b8a93 100644 --- a/src/yatm_v2/templates/github_issue.md +++ b/src/yatm_v2/templates/github_issue.md @@ -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 %}