Method: Codebot::Formatters::Gitlab::JobHook#branch
- Defined in:
- lib/codebot/formatters/gitlab_job_hook.rb
#branch ⇒ Object
58 59 60 61 62 63 |
# File 'lib/codebot/formatters/gitlab_job_hook.rb', line 58 def branch pieces = extract(:ref).split('/') return pieces[0] if pieces.length == 1 pieces[2..-1].join('/') end |