Skip to content

Commit 48226ca

Browse files
committed
Separate closing and merging pull requests
1 parent 1350c8d commit 48226ca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

base-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ messages:
159159
<blockquote>{{ pull_request.body|markdown }}</blockquote>
160160
{% endif %}
161161
{{ fancy_labels(pull_request.labels) }}
162+
{% elif action == CLOSED %}
163+
{% if pull_request.merged_at %}
164+
<a data-mautrix-no-link href="{{ repo.html_url }}/commit/{{ pull_request.merge_commit_sha }}">merged</a>
165+
{% else %}
166+
closed
167+
{% endif %}
162168
{% elif action == SYNCHRONIZE and pull_request.head.repo.id == pull_request.base.repo.id %} {% do abort() %}
163169
{% elif action == LABELED %} {% do abort() %}
164170
{% elif action == UNLABELED %} {% do abort() %}

0 commit comments

Comments
 (0)