Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
dfef28c9
Commit
dfef28c9
authored
Dec 23, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename `opt` to `opts` on ChatNotificationService#execute
parent
6dc3efdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/models/project_services/chat_notification_service.rb
app/models/project_services/chat_notification_service.rb
+4
-4
No files found.
app/models/project_services/chat_notification_service.rb
View file @
dfef28c9
...
@@ -51,11 +51,11 @@ class ChatNotificationService < Service
...
@@ -51,11 +51,11 @@ class ChatNotificationService < Service
channel_name
=
get_channel_field
(
object_kind
).
presence
||
channel
channel_name
=
get_channel_field
(
object_kind
).
presence
||
channel
opt
=
{}
opt
s
=
{}
opt
[
:channel
]
=
channel_name
if
channel_name
opt
s
[
:channel
]
=
channel_name
if
channel_name
opt
[
:username
]
=
username
if
username
opt
s
[
:username
]
=
username
if
username
notifier
=
Slack
::
Notifier
.
new
(
webhook
,
opt
)
notifier
=
Slack
::
Notifier
.
new
(
webhook
,
opt
s
)
notifier
.
ping
(
message
.
pretext
,
attachments:
message
.
attachments
,
fallback:
message
.
fallback
)
notifier
.
ping
(
message
.
pretext
,
attachments:
message
.
attachments
,
fallback:
message
.
fallback
)
true
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment