From a18e4d8d6437a0cf57e8ddebe61d36d5ce081e25 Mon Sep 17 00:00:00 2001 From: Dimitris Sotirakis Date: Thu, 11 Feb 2021 17:18:13 +0200 Subject: [PATCH] Add author name and pr number in drone pipeline notifications (#31124) * Add author name and pr number in drone pipeline notifications --- .drone.yml | 8 ++++---- scripts/lib.star | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7d28d88d823..cb888cee31e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -690,7 +690,7 @@ steps: image: plugins/slack settings: channel: grafana-ci-notifications - template: "Build {{build.number}} failed: {{build.link}}" + template: "Build {{build.number}} failed for PR {{build.pull}}: {{build.link}}\nAuthor: {{build.author}}" webhook: from_secret: slack_webhook @@ -1609,7 +1609,7 @@ steps: image: plugins/slack settings: channel: grafana-ci-notifications - template: "Build {{build.number}} failed: {{build.link}}" + template: "Build {{build.number}} failed for PR {{build.pull}}: {{build.link}}\nAuthor: {{build.author}}" webhook: from_secret: slack_webhook @@ -2511,7 +2511,7 @@ steps: image: plugins/slack settings: channel: grafana-ci-notifications - template: "Build {{build.number}} failed: {{build.link}}" + template: "Build {{build.number}} failed for PR {{build.pull}}: {{build.link}}\nAuthor: {{build.author}}" webhook: from_secret: slack_webhook @@ -3309,7 +3309,7 @@ steps: image: plugins/slack settings: channel: grafana-ci-notifications - template: "Build {{build.number}} failed: {{build.link}}" + template: "Build {{build.number}} failed for PR {{build.pull}}: {{build.link}}\nAuthor: {{build.author}}" webhook: from_secret: slack_webhook diff --git a/scripts/lib.star b/scripts/lib.star index a0c72cde92b..335516f505b 100644 --- a/scripts/lib.star +++ b/scripts/lib.star @@ -71,7 +71,7 @@ def slack_step(channel): 'from_secret': 'slack_webhook', }, 'channel': channel, - 'template': 'Build {{build.number}} failed: {{build.link}}', + 'template': 'Build {{build.number}} failed for PR {{build.pull}}: {{build.link}}\nAuthor: {{build.author}}', }, }