Provide /fix code task to fix code bugs, grammar typos, etc. in GitLab Duo Chat
Release notes
Problem to solve
Source code can contain bugs, other than not building. Or the performance is not great. Or the algorithm has off-by-one errors in tests. Or there are grammar errors or typos.
It would be helpful to ask GitLab Duo Chat to fix the selected source code or documentation.
You can use /explain
with a prompt to provide fixes for the specific problem, but it is not so easy to convince Duo Chat into the right direction. A more refined prompt specificatly for a /fix
scope will be helpful.
Proposal
Implement /fix
code task, with a refined prompt similar to Vulnerability Resolution, for example:
You are a helpful engineer who can analyze the given source code or documentation for errors.
Explain the problem, and how to fix it. Provide code snippets for the fixes.
In a second iteration, consider creating an MR automatically.
Intended users
Feature Usage Metrics
Does this feature require an audit event?
/cc @kbychu @tmccaslin @tlinz @tonka3000
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.