Skip to content
代码片段 群组 项目
提交 d1cb81af 编辑于 作者: George Koltsov's avatar George Koltsov
浏览文件

Merge branch 'mokhax/406633-explain-vuln-with-markdown' into 'master'

Format explain vulnerability responses with markdown format headers

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/117902



Merged-by: default avatarGeorge Koltsov <gkoltsov@gitlab.com>
Approved-by: default avatarMinahil Nichols <minahilnichols@gitlab.com>
Approved-by: default avatarGeorge Koltsov <gkoltsov@gitlab.com>
Co-authored-by: default avatarmo khan <mo@mokhan.ca>
No related branches found
No related tags found
无相关合并请求
......@@ -58,6 +58,7 @@ def default_prompt
Provide a code example with syntax highlighting on how to exploit it.
Provide a code example with syntax highlighting on how to fix it.
Provide the response in markdown format with headers.
PROMPT
end
......@@ -68,6 +69,7 @@ def prompt_without_code
The vulnerable code is in the file "#{filename}".
Provide a code example with syntax highlighting on how to exploit it.
Provide a code example with syntax highlighting on how to fix it.
Provide the response in markdown format with headers.
PROMPT
end
......@@ -77,6 +79,7 @@ def prompt_without_file_or_code
Explain the vulnerability "#{title} - #{description} (#{identifiers})".
Provide a code example with syntax highlighting on how to exploit it.
Provide a code example with syntax highlighting on how to fix it.
Provide the response in markdown format with headers.
PROMPT
end
end
......
......@@ -79,6 +79,7 @@
The vulnerable code is in the file "#{vulnerability.file}".
Provide a code example with syntax highlighting on how to exploit it.
Provide a code example with syntax highlighting on how to fix it.
Provide the response in markdown format with headers.
PROMPT
end
end
......@@ -95,6 +96,7 @@
Explain the vulnerability "#{vulnerability.title} - #{vulnerability.description} (#{identifiers})".
Provide a code example with syntax highlighting on how to exploit it.
Provide a code example with syntax highlighting on how to fix it.
Provide the response in markdown format with headers.
PROMPT
expect(subject.to_prompt).to eq(expected)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册