5.0 KiB
stage | group | info |
---|---|---|
none | Contributor Success | Any user with at least the Maintainer role can merge updates to this content. For details, see https://docs.gitlab.com/ee/development/development_processes.html#development-guidelines-review. |
GitLab Beta program
The GitLab Beta program provides GitLab Beta program members with early access to exclusive features. This page lists features available for testing as part of the program.
WARNING: The GitLab Beta Program is not operational yet. This page is in draft & in preparation for an upcoming launch.
These features may not be ready for production use and follow the Experimental or Beta policy of GitLab.
Git suggestions
Use glab ask
to ask questions about git
commands. It can help you remember a
command you forgot, or provide suggestions on how to run commands to perform other tasks.
Get started:
-
To install GLab, see installation instructions.
-
Set up GitLab ClI Authentication.
-
Use
glab ask git
to generate a Git command with AI in your command line:glab ask git <your_question>
Examples:
glab ask git how do I know the branch I'm on
glab ask git how to create a new branch with only a few particular commits
glab ask git how to find commits from removed branches
After it replies, you can execute the command it generates.
Code explanation
With the help of a large language model, GitLab Duo can explain code in natural language.
Get started:
- On the left sidebar, select Search or go to and find your project.
- Select any file in your project that contains code.
- On the file, select the lines that you want to have explained.
- On the left side, select the question mark ({question}). You might have to scroll to the first line of your selection to view it. This sends the selected code, together with a prompt, to provide an explanation to the large language model.
- A drawer is displayed on the right side of the page. Wait a moment for the explanation to be generated.
GitLab Duo Chat
GitLab Duo Chat is your personal AI-powered assistant for boosting productivity. It can assist various tasks of your daily work with the AI-generated content.
Get started:
- On the left sidebar, select Help ({question-o}) > GitLab Duo Chat.
- GitLab Duo Chat opens in the right sidebar. Enter your question or try one of these examples:
Where to find docs for CI job artifacts configuration?
Explain the concept of a 'fork' in a concise manner.
Provide step-by-step instructions on how to reset a user's password.
Generate issue description
Write a short summary of an issue and GitLab Duo generates a description for you.
Get started:
-
Create a new issue.
-
Above the Description field, select AI actions > Generate issue description. Hint: AI actions can be found next to Preview
-
Write a short description and select Submit.
GitLab Duo replaces the issue description with AI-generated text.
Test generation
/tests
is a special command to generate a testing suggestion for the selected code in your editor.
This feature is available in VS Code and the Web IDE only.
Get started:
-
On the left sidebar, select Search or go to and find your project.
-
Go to your file or directory.
-
Select Edit > Open in Web IDE.
-
Select code inside file.
-
On the left sidebar of Web IDE select the GitLab Duo Chat icon.
-
Enter
/tests
in AI dialog.You can add additional instructions:
/tests using RSpec framework
/tests markdown syntax
-
GitLab Duo Chat returns a code block with an example RSpec test you can use for the code you selected.