This commit is contained in:
Wilfried Kopp
2022-08-12 10:46:53 +02:00
committed by Chevdor
parent ffe19fd0b7
commit 385e193ffa
2 changed files with 3 additions and 3 deletions
@@ -1,7 +1,7 @@
{# This macro shows ONE change #} {# This macro shows ONE change #}
{%- macro change(c, cml="[C]", dot="[P]", sub="[S]") -%} {%- macro change(c, cml="[C]", dot="[P]", sub="[S]") -%}
{%- if c.meta.C and c.meta.C.value >= 7 -%} {%- if c.meta.C and c.meta.C.value >= 5 -%}
{%- set prio = " ‼️ HIGH" -%} {%- set prio = " ‼️ HIGH" -%}
{%- elif c.meta.C and c.meta.C.value >= 3 -%} {%- elif c.meta.C and c.meta.C.value >= 3 -%}
{%- set prio = " ❗️ Medium" -%} {%- set prio = " ❗️ Medium" -%}
@@ -7,7 +7,7 @@
{%- if pr.meta.B.value == 0 -%} {%- if pr.meta.B.value == 0 -%}
{#- We skip silent ones -#} {#- We skip silent ones -#}
{%- else -%} {%- else -%}
{%- if pr.meta.B and pr.meta.B.value != 5 and pr.meta.B.value != 7 or pr.meta.C or not pr.meta.B %} {%- if pr.meta.B and pr.meta.B.value != 5 or pr.meta.C or not pr.meta.B %}
{%- set_global misc_count = misc_count + 1 -%} {%- set_global misc_count = misc_count + 1 -%}
{%- endif -%} {%- endif -%}
{% endif -%} {% endif -%}
@@ -27,7 +27,7 @@ There are other misc. changes. You can expand the list below to view them all.
{%- if pr.meta.B.value == 0 %} {%- if pr.meta.B.value == 0 %}
{#- We skip silent ones -#} {#- We skip silent ones -#}
{%- else -%} {%- else -%}
{%- if pr.meta.B and pr.meta.B.value != 5 and pr.meta.B.value != 7 or pr.meta.C or not pr.meta.B %} {%- if pr.meta.B and pr.meta.B.value != 5 or pr.meta.C or not pr.meta.B %}
- {{ m_c::change(c=pr) }} - {{ m_c::change(c=pr) }}
{%- endif -%} {%- endif -%}
{% endif -%} {% endif -%}