BigW Consortium Gitlab

RSpec profiling: Prepend the branch name with `ce` or `ee`

Signed-off-by: 's avatarRémy Coutable <remy@rymai.me>
parent 4014deae
......@@ -7,7 +7,11 @@ module RspecProfilingExt
module Git
def branch
ENV['CI_COMMIT_REF_NAME'] || super
if ENV['CI_COMMIT_REF_NAME']
"#{defined?(Gitlab::License) ? 'ee' : 'ce'}:#{ENV['CI_COMMIT_REF_NAME']}"
else
super
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment