Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit 0f8af69

Browse files
committed
improve drone-matrix template
1 parent 515f687 commit 0f8af69

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.drone.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ local PipelineNotifications = {
364364
settings: {
365365
homeserver: { from_secret: 'matrix_homeserver' },
366366
roomid: { from_secret: 'matrix_roomid' },
367-
template: 'Status: **{{ build.Status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}) ({{ build.Branch }}) by {{ commit.Author }}<br/> Message: {{ commit.Message }}',
367+
template: 'Status: **{{ build.Status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}){{#if build.Branch}} ({{ build.Branch }}){{/if}} by {{ commit.Author }}<br/> Message: {{ commit.Message.Title }}',
368368
username: { from_secret: 'matrix_username' },
369369
password: { from_secret: 'matrix_password' },
370370
},

.drone.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ steps:
418418
from_secret: matrix_password
419419
roomid:
420420
from_secret: matrix_roomid
421-
template: "Status: **{{ build.Status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}) ({{ build.Branch }}) by {{ commit.Author }}<br/> Message: {{ commit.Message }}"
421+
template: "Status: **{{ build.Status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}){{#if build.Branch}} ({{ build.Branch }}){{/if}} by {{ commit.Author }}<br/> Message: {{ commit.Message.Title }}"
422422
username:
423423
from_secret: matrix_username
424424
when:
@@ -442,6 +442,6 @@ depends_on:
442442

443443
---
444444
kind: signature
445-
hmac: a65d4656668358c5ff194d44c6b9ac4e7333dada757a1dc40261e5e516af4f40
445+
hmac: ca68910cbef8d7a04ff6c88e9370315b1ac0b26efd044d94868c9f1b613ba174
446446

447447
...

0 commit comments

Comments
 (0)