From 4ebdc189d95b60d00ad4629a278d2fbeeb390e46 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 22 Sep 2021 09:28:15 +0200 Subject: [PATCH] improve drone-matrix template --- .../.drone.jsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.author}}.{{cookiecutter.role_name}}/.drone.jsonnet b/{{cookiecutter.author}}.{{cookiecutter.role_name}}/.drone.jsonnet index f37034d..cd24010 100644 --- a/{{cookiecutter.author}}.{{cookiecutter.role_name}}/.drone.jsonnet +++ b/{{cookiecutter.author}}.{{cookiecutter.role_name}}/.drone.jsonnet @@ -136,7 +136,7 @@ local PipelineNotification = { settings: { homeserver: { from_secret: 'matrix_homeserver' }, roomid: { from_secret: 'matrix_roomid' }, - template: '{% raw %}Status: **{{ build.Status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}) ({{ build.Branch }}) by {{ commit.Author }}
Message: {{ commit.Message }}{% endraw %}', + template: '{% raw %}Status: **{{ build.Status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}){{#if build.Branch}} ({{ build.Branch }}){{/if}} by {{ commit.Author }}
Message: {{ commit.Message.Title }}{% endraw %}', username: { from_secret: 'matrix_username' }, password: { from_secret: 'matrix_password' }, },