Add gitlab webhook support
This commit is contained in:
parent
9d41d56e0c
commit
a1ae717c8f
26 changed files with 1824 additions and 8 deletions
20
templates/gitlab/messages/comment.html
Normal file
20
templates/gitlab/messages/comment.html
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{{ templates.repo_sender_prefix }}
|
||||
<a data-mautrix-exclude-plaintext href="{{ object_attributes.url }}">
|
||||
{%- if object_attributes.type == CommentType.DISCUSSION_NOTE -%}
|
||||
replied to a thread
|
||||
{%- else -%}
|
||||
commented
|
||||
{%- endif -%}
|
||||
</a> on
|
||||
{% if issue and object_attributes.noteable_type == NoteableType.ISSUE %}
|
||||
{{ issue_link(issue, important=false) }}
|
||||
{% elif merge_request and object_attributes.noteable_type == NoteableType.MERGE_REQUEST %}
|
||||
{{ merge_request_link(merge_request, important=false) }}
|
||||
{% else %}
|
||||
{# unsupported comment target #}
|
||||
{% do abort() %}
|
||||
{% endif %}
|
||||
<br/>
|
||||
{% if object_attributes.description %}
|
||||
<blockquote>{{ object_attributes.description|markdown }}</blockquote>
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue