Commit 1fca26c94c0afb958ecbd87c64927be3fc3c9b30
Exists in
spb-stable
and in
3 other branches
Merge pull request #6626 from andreausu/add-slack-username
Change the notification sender username to GitLab in Slack Notifier
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
app/models/project_services/slack_service.rb
@@ -52,6 +52,7 @@ class SlackService < Service | @@ -52,6 +52,7 @@ class SlackService < Service | ||
52 | 52 | ||
53 | notifier = Slack::Notifier.new(subdomain, token) | 53 | notifier = Slack::Notifier.new(subdomain, token) |
54 | notifier.channel = room | 54 | notifier.channel = room |
55 | + notifier.username = 'GitLab' | ||
55 | notifier.ping(message.compose) | 56 | notifier.ping(message.compose) |
56 | end | 57 | end |
57 | 58 |