Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6aef7178
Commit
6aef7178
authored
Sep 22, 2020
by
Jonathan Schafer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add link to vulnerability from created issue
parent
82f7405e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
ee/app/views/vulnerabilities/issue_description.md.erb
ee/app/views/vulnerabilities/issue_description.md.erb
+4
-0
ee/changelogs/unreleased/add_link_to_vulnerability_from_issue.yml
...elogs/unreleased/add_link_to_vulnerability_from_issue.yml
+5
-0
ee/spec/services/ee/issues/create_from_vulnerability_service_spec.rb
...vices/ee/issues/create_from_vulnerability_service_spec.rb
+2
-0
No files found.
ee/app/views/vulnerabilities/issue_description.md.erb
View file @
6aef7178
<%
if
vulnerability
.
is_a?
Vulnerability
%>
Issue created from vulnerability
<%=
link_to
vulnerability
.
id
,
Gitlab
::
UrlBuilder
.
build
(
vulnerability
)
%>
<%
end
%>
###
<%=
_
(
"Description"
)
%>
:
<%=
vulnerability
.
description
%>
...
...
ee/changelogs/unreleased/add_link_to_vulnerability_from_issue.yml
0 → 100644
View file @
6aef7178
---
title
:
Add link to vulnerability from created issue
merge_request
:
43046
author
:
type
:
changed
ee/spec/services/ee/issues/create_from_vulnerability_service_spec.rb
View file @
6aef7178
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment