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: docs/0-prereqs.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,9 @@ Next up, we will be using a codespace to complete the lab exercises. [GitHub Cod
35
35
36
36
The creation of the codespace will take several minutes, although it's still far quicker than having to manually install all the services! That said, we can use this time to take advantage of our ability to assign tasks to GitHub Copilot which it can perform asynchronously, which we'll turn our attention to next!
37
37
38
+
> [!IMPORTANT]
39
+
> We will return to the codespace in a future exercise. For the time being, leave it open in a tab in your browser.
40
+
38
41
## Summary
39
42
40
43
Congratulations, you have created a copy of the lab repository! You also began the creation process of your codespace, which you'll use when you begin writing code. We're going to return back to this after the next lesson, so don't worry.
Copy file name to clipboardExpand all lines: docs/1-copilot-coding-agent.md
+20-27Lines changed: 20 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,13 +28,15 @@ These are both examples of tasks which can quickly find themselves deprioritized
28
28
29
29
While it can often feel like it, there is no magic in GitHub Copilot. There are no magic solutions available, where you can with just a couple of sentences snap your fingers and let AI perform the entire task for you. In fact, even seemingly straight-forward operations can often have fair amount of complexity when we peel back the layers.
30
30
31
-
As a result, we want to [be mindful about how we approach assigning tasks to Copilot coding agent][coding-agent-best-practices], and that working with Copilot as an AI pair programmer is typically the best approach. The approach you take tasks big and small is the same with or without Copilot - work in stages, learn, experiment, and adapt accordingly. As always, the fundamentals of software development do not change with the addition of generative AI.
31
+
As a result, we want to [be mindful about how we approach assigning tasks to Copilot coding agent][coding-agent-best-practices]. Working with Copilot as an AI pair programmer is typically the best approach. Approach tasks, big and small, following the same strategy you would without Copilot - work in stages, learn, experiment, and adapt accordingly.
32
+
33
+
As always, the fundamentals of software development do not change with the addition of generative AI.
32
34
33
35
## Setting up the dev environment for the Copilot coding agent
34
36
35
37
Creating code, regardless of who's involved, typically requires a specific environment and some setup scripts to be run to ensure everything is in a good state. This holds true when assigning tasks to Copilot, which is performing tasks in a similar fashion to a SWE.
36
38
37
-
[Copilot coding agent supports a special workflow][setup-workflow], set in the **.github/workflows/copilot-setup-steps.yml** file, to run before it gets to work. This enables it to have access to the required development tools and dependencies. We pre-configured this ahead of the lab to help the lab flow and allow this learning opportunity. It makes sure that Copilot had access to Python, Node.JS, and the required dependencies for the client and server:
39
+
Coding agent uses [GitHub Actions][github-actions] for its environment when doing its work. You can customize this environment by creating a [special setup workflow][setup-workflow], configured in the **.github/workflows/copilot-setup-steps.yml** file, to run before it gets to work. This enables it to have access to the required development tools and dependencies. We pre-configured this ahead of the lab to help the lab flow and allow this learning opportunity. It makes sure that Copilot had access to Python, Node.JS, and the required dependencies for the client and server:
38
40
39
41
```yaml
40
42
name: "Copilot Setup Steps"
@@ -108,14 +110,17 @@ While every developer and organization understands the importance of documentati
108
110

109
111
110
112
11. Select the **Pull Requests** tab.
111
-
12. Open the newly generated issue, which will be titled something similar to **[WIP]: Code lacks documentation**.
113
+
12. Open the newly generated pull request (PR), which will be titled something similar to **[WIP]: Code lacks documentation**.
112
114
13. After a few minutes, you should see that Copilot has created a todo list.
113
-
14. Review the list and the tasks it's going to complete.
114
-
15. Scroll down the pull request timeline, and you should see an update that Copilot has started working on the issue.
> It make take several minutes for the todo list from Copilot to appear in the PR. Copilot is creating its environment (running the workflow highlighted previously), analyzing the project, and determining the best approach to tackling the problem.
118
118
119
+
14. Review the list and the tasks it's going to complete.
120
+
15. Scroll down the pull request timeline, and you should see an update that Copilot has started working on the issue.
> You may need to refresh the window to see the updated indicator.
@@ -158,20 +163,7 @@ Shortly after, you should see a set of 👀 on the first comment in the issue, i
158
163
159
164

160
165
161
-
> [!IMPORTANT]
162
-
> You may need to refresh the window to see the updated indicator.
163
-
164
-
13. Select the **Pull Requests** tab.
165
-
14. Open the newly generated PR, which will be titled something similar to **[WIP]: Add endpoints to create and edit games**.
166
-
15. After a few minutes, Copilot will update the PR with a checklist of the tasks its going to perform. It will use this checklist to indicate to the outside world its progress.
167
-
16. Scroll down the pull request timeline, and you should see an update that Copilot has started working on the issue.
18. Notice that you can scroll through the live session, and how Copilot is solving the problem. That includes exploring the code and understanding the state, how Copilot pauses to think and decide on the appropriate plan and also creating code.
173
-
174
-
Copilot is now diligently working on your request! Copilot coding agent works in a similar fashion to a SWE, so we don't need to actively monitor it, but instead review once it's completed. Let's turn our attention to writing code and adding other features.
166
+
Copilot is now diligently working on your second request! Copilot coding agent works in a similar fashion to a SWE, so we don't need to actively monitor it, but instead review once it's completed. Let's turn our attention to writing code and adding other features.
175
167
176
168
## Summary and next steps
177
169
@@ -197,11 +189,12 @@ With coding agent working diligently in the background, we can now turn our atte
0 commit comments