Skip to content
Snippets Groups Projects
Commit 5fee7ec1 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

It was never used

parent d41e83e9
No related branches found
No related tags found
1 merge request!5525Implement Slack integration for pipeline hooks
Loading
Loading
@@ -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]
Loading
Loading
@@ -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)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment