Skip to content

Commit d74f6fa

Browse files
authored
Fix cliff configuration (#216)
1 parent ca476fa commit d74f6fa

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎cliff.toml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ body = """
1414
### {{ group | upper_first }}
1515
{% for commit in commits %}
1616
{%- set display_scope = commit.scope %}
17-
{%- if commit.remote.pr_labels is containing("ice-rest-catalog") %}
17+
{%- set pr_labels = commit.remote.pr_labels | default(value=[]) %}
18+
{%- if pr_labels is containing("ice-rest-catalog") %}
1819
{%- set display_scope = "ice-rest-catalog" %}
19-
{%- elif commit.remote.pr_labels is containing("ice") %}
20+
{%- elif pr_labels is containing("ice") %}
2021
{%- set display_scope = "ice" %}
2122
{%- endif %}
2223
- {% if display_scope %}`{{ display_scope }}` - {% endif %}{{ commit.message | upper_first }}\

0 commit comments

Comments
 (0)