You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/guided-workshop/exercises/1-code-scanning.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,12 +24,12 @@ Public repositories on GitHub automatically have Dependabot alerts. This feature
24
24
25
25
1. Navigate to the repository you created for this workshop.
26
26
1. Select the **Settings** tab.
27
-
1. On the left side, select **Code security and analysis**.
28
-
1. Locate the **Dependabot** section towards the middle of the page:
27
+
2. On the left side, select **Code security**.
28
+
3. Locate the **Dependabot** section towards the middle of the page:
29
29
30
30

31
31
32
-
1. Select **Enable** next to **Dependabot security updates** to configure Dependabot to create PRs to resolve alerts.
32
+
4. Select **Enable** next to **Dependabot security updates** to configure Dependabot to create PRs to resolve alerts.
33
33
34
34
You have now enabled Dependabot alerts and security updates! Should an insecure library be detected, you will both receive an alert, and Dependabot will create a new pull request to update the version number to a secure version of the library.
Copy file name to clipboardExpand all lines: content/guided-workshop/exercises/2-issues.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,9 @@ Our project needs two main updates. We want to make the updates to support devel
23
23
1. Return to the repository you created at the beginning of this workshop.
24
24
1. Select the **Issues** tab.
25
25
1. Select **New issue**.
26
-
1. Create new issues by adding the information indicated in the table below, selecting **Submit new issue** after creating each one (and using **New issue** to create a new one):
26
+
2. If prompted for type, select **Blank issue**.
27
+
3. Select **Create more** at the bottom of the page to streamline the creation process.
28
+
4. Create new issues by adding the information indicated in the table below, selecting **Submit new issue** after creating each one:
Copy file name to clipboardExpand all lines: content/guided-workshop/exercises/3-codespaces.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,20 +21,20 @@ One thing that's really great is the [default dev container](https://github.com/
21
21
Let's create our own dev container! The [dev container is configured](https://docs.github.com/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers) by creating the Docker files Codespaces will use to create and configure the container, and providing any customizations in the `devcontainer.json` file. Customizations provided in `devcontainer.json` can include ports to open, commands to run, and extension to install in Visual Studio Code (either running locally on the desktop or in the browser). This configuration becomes part of the repository. All developers who wish to contribute can then create a new instance of the container based on the configuration you provided.
22
22
23
23
1. Access the Command Palette (<kbd>F1</kbd> or clicking ☰ → View → Command Palette), then start typing **dev container**.
24
-
1. Select **Codespaces: Add Development Container Configuration Files...** .
25
-
2. Select **Add configuration to workspace**.
24
+
2. Select **Codespaces: Add Development Container Configuration Files...** .
26
25
3. Select **Create a new configuration...**.
27
-
4. Select **From a predefined container configuration...**.
28
-
5. Scroll down and select **Node.js & TypeScript**.
29
-
6. Select **22-bookworm (default)**.
30
-
7. Select the following features to add into your container:
26
+
4. Scroll down and select **Node.js & TypeScript**.
27
+
5. Select **22-bookworm (default)**.
28
+
6. Select the following features to add into your container:
31
29
-**GitHub CLI**
32
30
-**Python**
33
31
34
32
> [!NOTE]
35
33
> You can type the name of the feature you want to filter the list.
36
34
37
-
8. Select **Keep defaults** to use the default configuration.
35
+
7. Select **OK** to add the features.
36
+
8. Select **Keep defaults** to use the default configuration.
37
+
9. If you receive the prompt **File './.github/dependabot.yml' already exists, overwrite?**, select **Skip**.
38
38
39
39
> [!IMPORTANT]
40
40
> Your new container definition files will be created into the **.devcontainer** folder. **DO NOT** select **Rebuild Now**; we'll do that in just a moment.
@@ -98,11 +98,13 @@ You've now defined a custom container!
98
98
99
99
Whenever someone uses the codespace you defined they'll have an environment with Node.js and Mongo DB, and the GitHub Copilot extension installed. Let's use this container!
100
100
101
-
1. Open the command palette.
101
+
1. Access the Command Palette (<kbd>F1</kbd> or clicking ☰ → View → Command Palette), then start typing **dev container**.
102
102
1. Type **rebuild** and select **Codespaces: Rebuild container**.
103
103
1. Select **Rebuild Container** on the dialog box. Your container now rebuilds.
104
104
105
105
> **IMPORTANT:** Rebuilding the container can take several minutes. Obviously this isn't an ideal situation for providing fast access to your developers, even if it's faster than creating everything from scratch. Fortunately you can [prebuild your codespaces](https://docs.github.com/en/codespaces/prebuilding-your-codespaces) to ensure developers can spin one up within seconds.
106
+
>
107
+
> You may also be prompted to reload the window as extensions install. Reload the window as prompted.
Copy file name to clipboardExpand all lines: content/guided-workshop/exercises/4-testing.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,14 +46,15 @@ Now that we have an overview of the structure of a workflow, let's ask Copilot t
46
46
47
47
1. Create a new folder under **.github** named **workflows**.
48
48
2. Create a new file named **server-test.yml** and ensure the file is open.
49
-
3. Open GitHub Copilot Chat.
50
-
4. Add the test file **test_app.py** to the context by using the `#` in the Chat dialog box and beginning to type **test_app.py**, and pressing <kbd>enter</kbd> when it's highlighted.
51
-
5. Prompt Copilot to create a GitHub Action workflow to run the tests. Use natural language to describe the workflow you're looking to create (to run the tests defined in test_app.py), and that you want it to run on merge (for when new code is pushed), when a PR is made, and on demand.
49
+
3. If prompted to install the **GitHub Actions** extension, select **Install**.
50
+
4. Open GitHub Copilot Chat.
51
+
5. Add the test file **test_app.py** to the context by using the `#` in the Chat dialog box and beginning to type **test_app.py**, and pressing <kbd>enter</kbd> when it's highlighted.
52
+
6. Prompt Copilot to create a GitHub Action workflow to run the tests. Use natural language to describe the workflow you're looking to create (to run the tests defined in test_app.py), and that you want it to run on merge (for when new code is pushed), when a PR is made, and on demand.
52
53
53
54
> [!IMPORTANT]
54
55
> A prescriptive prompt isn't provided as part of the exercise is to become comfortable interacting with GitHub Copilot.
55
56
56
-
6. Add the generated code to the new file. It should resemble the following:
57
+
6. Add the generated code to the new file by hovering over the suggested code and selecting the **Insert at cursor** button. The generated code should resemble the following:
Copy file name to clipboardExpand all lines: content/guided-workshop/exercises/5-context.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,8 +24,9 @@ GitHub Copilot Chat has a set of available chat participants and extensions avai
24
24
25
25
1. Return to your codespace, or reopen it by navigating to your repository and selecting **Code** > **Codespaces** and the name of your codespace.
26
26
2. Open GitHub Copilot Chat.
27
-
3. Type `@workspace` in the chat prompt window and hit <kbd>tab</kbd> to select or activate it, then continue by asking Copilot about your project. You can ask what technologies are in use, what the project does, where functionality resides, etc.
28
-
4. Spend a few minutes exploring to find the answers to the following questions:
27
+
3. Select the `+` icon towards the top to begin a new chat.
28
+
4. Type `@workspace` in the chat prompt window and hit <kbd>tab</kbd> to select or activate it, then continue by asking Copilot about your project. You can ask what technologies are in use, what the project does, where functionality resides, etc.
29
+
5. Spend a few minutes exploring to find the answers to the following questions:
0 commit comments