Commit 6aef7178 authored by Jonathan Schafer's avatar Jonathan Schafer

Add link to vulnerability from created issue

parent 82f7405e
<% if vulnerability.is_a? Vulnerability %>
Issue created from vulnerability <%= link_to vulnerability.id, Gitlab::UrlBuilder.build(vulnerability) %>
<% end %>
### <%= _("Description") %>:
<%= vulnerability.description %>
......
---
title: Add link to vulnerability from created issue
merge_request: 43046
author:
type: changed
......@@ -97,6 +97,8 @@ RSpec.describe Issues::CreateFromVulnerabilityService, '#execute' do
let(:expected_title) { "Investigate vulnerability: #{vulnerability.title}" }
let(:expected_description) do
<<~DESC.chomp
Issue created from vulnerability <a href="http://localhost/#{group.name}/#{project.name}/-/security/vulnerabilities/#{vulnerability.id}">#{vulnerability.id}</a>
### Description:
Description of #{vulnerability.title}
......
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