diff --git a/.drone.jsonnet b/.drone.jsonnet index b4e5245..7f991b9 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -168,7 +168,7 @@ local PipelineNotifications = { settings: { homeserver: { from_secret: 'matrix_homeserver' }, roomid: { from_secret: 'matrix_roomid' }, - template: 'Status: **{{ build.Status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}) ({{ build.Branch }}) by {{ commit.Author }}
Message: {{ commit.Message }}', + template: 'Status: **{{ build.Status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}){{#if build.Branch}} ({{ build.Branch }}){{/if}} by {{ commit.Author }}
Message: {{ commit.Message.Title }}', username: { from_secret: 'matrix_username' }, password: { from_secret: 'matrix_password' }, }, diff --git a/.drone.yml b/.drone.yml index 50d597e..b87e629 100644 --- a/.drone.yml +++ b/.drone.yml @@ -323,7 +323,7 @@ steps: from_secret: matrix_password roomid: from_secret: matrix_roomid - template: "Status: **{{ build.Status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}) ({{ build.Branch }}) by {{ commit.Author }}
Message: {{ commit.Message }}" + template: "Status: **{{ build.Status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}){{#if build.Branch}} ({{ build.Branch }}){{/if}} by {{ commit.Author }}
Message: {{ commit.Message.Title }}" username: from_secret: matrix_username when: @@ -346,6 +346,6 @@ depends_on: --- kind: signature -hmac: 1be4decc9469d1361ebca81675e2a8910b1d8e5ee55da8966204253847579ae9 +hmac: 9a9a47b7dfb0810da0d33a0a45e4a4fe906a62e337a3ebef6034a5491ba7cb00 ...