diff options
Diffstat (limited to 'lib/gitlab/badge/pipeline/status.rb')
-rw-r--r-- | lib/gitlab/badge/pipeline/status.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/gitlab/badge/pipeline/status.rb b/lib/gitlab/badge/pipeline/status.rb index a403d839517..17f179f027d 100644 --- a/lib/gitlab/badge/pipeline/status.rb +++ b/lib/gitlab/badge/pipeline/status.rb @@ -7,11 +7,15 @@ module Gitlab # Pipeline status badge # class Status < Badge::Base - attr_reader :project, :ref + attr_reader :project, :ref, :customization - def initialize(project, ref) + def initialize(project, ref, opts: {}) @project = project @ref = ref + @customization = { + key_width: opts[:key_width].to_i, + key_text: opts[:key_text] + } @sha = @project.commit(@ref).try(:sha) end |