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
5fee7ec1
Commit
5fee7ec1
authored
Jul 29, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
It was never used
parent
d41e83e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/models/project_services/slack_service/build_message.rb
app/models/project_services/slack_service/build_message.rb
+2
-2
No files found.
app/models/project_services/slack_service/build_message.rb
View file @
5fee7ec1
...
...
@@ -9,7 +9,7 @@ class SlackService
attr_reader
:user_name
attr_reader
:duration
def
initialize
(
params
,
commit
=
true
)
def
initialize
(
params
)
@sha
=
params
[
:sha
]
@ref_type
=
params
[
:tag
]
?
'tag'
:
'branch'
@ref
=
params
[
:ref
]
...
...
@@ -36,7 +36,7 @@ class SlackService
def
message
"
#{
project_link
}
: Commit
#{
commit_link
}
of
#{
branch_link
}
#{
ref_type
}
by
#{
user_name
}
#{
humanized_status
}
in
#{
duration
}
#{
'second'
.
pluralize
(
duration
)
}
"
end
end
def
format
(
string
)
Slack
::
Notifier
::
LinkFormatter
.
format
(
string
)
...
...
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