Commit e90644fa authored by Ian Ernst's avatar Ian Ernst Committed by Dan Plumbley
Browse files

Updated the Duo Labs to handle new version

parent 00274f48
Loading
Loading
Loading
Loading
+19 −19
Original line number Diff line number Diff line
@@ -9,41 +9,41 @@ description: "This Hands-On Guide walks you through using GitLab Duo to answer t

GitLab Duo allows you to use AI-assisted features across GitLab. To get started with GitLab Duo, you will need to first generate a lab environment to work in. This lab environment will provide you with all the GitLab Duo features demonstrated in this course.

## Task A. Access your Training Group
## Task A. Working with GitLab Duo Chat

1. Navigate to [**https://gitlabdemo.com/invite**](https://gitlabdemo.com/invite) in a web browser.
1. Navigate to your GitLab group.

1. In the **Invitation Code** field, enter the invitation code provided by your instructor or in the GitLab University LMS.
1. Select **Create new project**.

1. Select **Provision Training Environment**.
1. Select **Create blank project**.

1. The system will prompt you for your **GitLab.com** username. Enter your GitLab.com username (excluding the leading @ sign) in the field provided. Select **Provision Training Environment**.
1. In the project name, type `Duo Demo`.

1. On the confirmation page, locate the `Your GitLab Credentials` section. Read this section carefully, noting the expiration date. Your access to this group and all of the projects that you create is ephemeral and will be deleted after the expiration date.
1. Leave all other options as default and select **Create project**.

1. Select **My Group** at the bottom of the page.
1. From your project, click the **GitLab Duo Chat** button in the top right corner.

1. Sign in with your GitLab.com credentials.
1. A new chat window will appear on the right side of the screen. Try asking some questions and see how the GitLab Duo responds!

1. You will be redirected to a **My Test Group** group that provides a sandbox for you to perform training lab steps in.
Here are a few demo questions you can ask Duo:

    > This group has a GitLab Ultimate license to see all of the features while your personal username namespace requires a paid subscription or a free trial to access all of the features.
- `How do I move an issue from one project to another?`
- `What is a merged results pipeline?`
- `What is an example of a simple Python function?`

1. From your **My Test Group** training subgroup, navigate to the **GitLab Duo Principles** project.
## Task B. Using GitLab Duo Agentic Chat

    > This project has been pre-populated with a `go.mod` file that will be used in upcoming labs. It also contains an `examples` folder that holds additional examples and activities per lab.
GitLab Duo Agentic chat can perform tasks for you, such as moving issues or moving merge requests between projects. Let's try it out!

## Task B. Working with GitLab Duo Chat
1. If your Duo Chat is not currently open, click the **GitLab Duo Chat** button in the top right corner.

1. From your project, click the **GitLab Duo Chat** button in the top right corner.
1. Select the **Agentic Chat (Beta)** option in the bottom right.

1. A new chat window will appear on the right side of the screen. Try asking some questions and see how the GitLab Duo responds!
1. Let's try making an issue. Type in something like, `Create an issue in this project that describes in detail how a team can implement a new security feature to improve their systems.`

Here are a few demo questions you can ask Duo:
1. The GitLab Agentic chat will ask you to Approve of the workflow item. Click **Approve** to continue the action.

- `How do I move an issue from one project to another?`
- `What is a merged results pipeline?`
- `What is an example of a simple Python function?`
1. Once the action is complete, you will see the issue created in your project. Refresh your Issues page to see the new issue.

## Lab Guide Complete

+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ To get started with GitLab Duo, we will test out some of the basic code generati

In this task, we are going to generate a basic 'hello world' program in Go using GitLab Duo. This task will help you get familiar with the process of creating code in a project with GitLab Duo.

1. Navigate to your GitLab Duo Principles project.
1. Navigate to your *Duo Demo* project.

1. Select **Edit > Web IDE**.

+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ GitLab Duo extends beyond just code generation. GitLab Duo can support you throu

## Task A. Creating an Issue with GitLab Duo

1. Navigate to your GitLab Duo Principles Project.
1. Navigate to your *Duo Demo* project.

1. In your project, from the left sidebar, select **Plan > Issues**.

+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ In this lab, you will see how GitLab Duo can writing and testing code inside of

## Task A. Using Code Suggestions to Write a New Function

1. Navigate to the root of your GitLab Duo Principles Project.
1. Navigate to the root of your *Duo Demo* project.

1. Select the `main.go` file.

+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ In this lab, you will see how GitLab Duo can help with explaining and resolving

## Task A. Explaining a Security Vulnerability

1. Navigate to your GitLab Duo Principles Project.
1. Navigate to your *Duo Demo* project.

1. Select the `.gitlab-ci.yml` file.