Skip to content

Commit

Permalink
Add author name and pr number in drone pipeline notifications (grafan…
Browse files Browse the repository at this point in the history
…a#31124)

* Add author name and pr number in drone pipeline notifications
  • Loading branch information
dsotirakis authored Feb 11, 2021
1 parent c01fb7e commit a18e4d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion scripts/lib.star
Original file line number Diff line number Diff line change
Expand Up @@ -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}}',
},
}

Expand Down

0 comments on commit a18e4d8

Please sign in to comment.