Skip to content
Snippets Groups Projects
Commit 73f13526 authored by David Eisner's avatar David Eisner Committed by blackst0ne
Browse files

Ensure absolute URLs for single lines from Banzai for HipChat

"pipeline: :single_line" leaves the protocol/host part out of the URLs
and caches them that way. To avoid giving those out to HipChat, markdown
is always rendered with "pipeline: :email" first.

There must be a better way to do this, but I can't see how to avoid the
link caching.
parent 59b2770a
No related branches found
No related tags found
1 merge request!9252Add merge request count to each issue on issues list
......@@ -125,12 +125,16 @@ def create_push_message(push)
message
end
def markdown(text, context = {})
def markdown(text, options = {})
if text
context = ({
context = {
project: project,
pipeline: :email
}).merge(context)
}
Banzai.render(text, context)
context.merge!(options)
html = Banzai.render(text, context)
html = Banzai.post_process(html, context)
......
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