Skip to content

Commit

Permalink
Separate closing and merging pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Sep 17, 2020
1 parent 1350c8d commit 48226ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions base-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ messages:
<blockquote>{{ pull_request.body|markdown }}</blockquote>
{% endif %}
{{ fancy_labels(pull_request.labels) }}
{% elif action == CLOSED %}
{% if pull_request.merged_at %}
<a data-mautrix-no-link href="{{ repo.html_url }}/commit/{{ pull_request.merge_commit_sha }}">merged</a>
{% else %}
closed
{% endif %}
{% elif action == SYNCHRONIZE and pull_request.head.repo.id == pull_request.base.repo.id %} {% do abort() %}
{% elif action == LABELED %} {% do abort() %}
{% elif action == UNLABELED %} {% do abort() %}
Expand Down

0 comments on commit 48226ca

Please sign in to comment.