Skip to content

Commit 7953a79

Browse files
fix(ci): set merge attribute to false for non-merge commits
The previous version of this commit-message template had a bug where `merge` was unset for non-merge commits and thus the template rendering failed. See https://github.com/libp2p/rust-libp2p/pull/4128/checks?check_run_id=14597190466 for example. Pull-Request: #4130.
1 parent 86fb960 commit 7953a79

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/mergify.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ defaults:
1313
{%- for commit in commits -%}
1414
{%- if commit.parents|length != 1 -%}
1515
{%- set _ = commit.update({'merge': true}) -%}
16+
{%- else -%}
17+
{%- set _ = commit.update({'merge': false}) -%}
1618
{%- endif -%}
1719
{%- endfor -%}
1820
{%- for commit in (commits | rejectattr("merge") | unique(False, 'email_author')) | rejectattr("author", "==", author) -%}

0 commit comments

Comments
 (0)