From 5a76d0cdbb25eb972f7ef25d64c1e7419e232526 Mon Sep 17 00:00:00 2001 From: April Yoho Date: Fri, 20 Sep 2024 11:46:15 +0100 Subject: [PATCH 1/3] Update README.md --- README.md | 46 +++++++++++++++++++++++++++++++--------------- 1 file changed, 31 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 946660a..28dcf3f 100644 --- a/README.md +++ b/README.md @@ -1,38 +1,54 @@ -# GitHub Copilot Hands-on - lab setup +# GitHub Copilot Hands-on-lab setup These instructions will guide you through configuring a GitHub Codespaces environment that you can use to run the course labs. If you prefer and if you know one of the other IDEs supported by Copilot, you can use that. But the instructions will reference the codespace version. +NOTE: These lab instructions are a fork of the [GitHub Copilot Hands-on](https://github.com/skillrepos/copilot-hands-on) repository. Please go to the original repository, https://github.com/skillrepos/copilot-hands-on and **give it a star** to show your support for the author of the original content on which this lab is based. + These steps **must** be completed prior to starting the actual labs. ## 1. Ensure that you are signed up for Copilot access. -If not, when signed into GitHub, click on your profile picture/icon in the upper right and either select [Copilot](https://github.com/github-copilot/signup) +If you do not already have access to **GitHub Copilot**, go to **https://gh.io/cfp-sea24aic** to redeem a 7-day free trial of GitHub Copilot. You can also use this QR code. +

+

+ +Fill in any information requested and press the `Apply coupon` button. + +![Signing up for Copilot](./images/pic007.png?raw=true "Signing up for Copilot") + +If everything is successful, you will see a banner that says `You have successfully redeemed your coupon`. -![Signing up for Copilot](./images/cdd70.png?raw=true "Signing up for Copilot") +![Signing up for Copilot](./images/pic008.png?raw=true "Signing up for Copilot") -**OR** select [Settings->Copilot](https://github.com/settings/copilot) and sign up. +## 2. Create your own fork of the repository for these labs -![Signing up for Copilot](./images/cdd32.png?raw=true "Signing up for Copilot") +- Ensure that you have created a repository by forking the [DaveOps30/copilot-hands-on](https://github.com/DaveOps30/copilot-hands-on) project as a template into your own GitHub area. +- You do this by navigating to the repo, clicking the `Fork` button in the upper right portion of the main project page and following the steps to create a copy in **your-github-userid/copilot-hands-on**. -You can also find help there for using Copilot in other supported IDEs, set the switch for whether or not to allow matching public code suggestions, etc. +![Forking repository](./images/cpho1.png?raw=true "Forking the repository") -![Using Copilot options](./images/cdd31.png?raw=true "Using Copilot options") +- **Once the fork has been created, open your forked instance of the repo and continue the next steps from there.** -## 2. Create your own codespace to run the labs by clicking on the button below. -

-Click here -----> [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/skillrepos/copilot-hands-on?quickstart=1) -

+## 3. Start your codespace -Then click on the option to create a new codespace. +In your forked repository, start a new codespace. -![Creating new codespace from button](./images/cpho2.png?raw=true "Creating new codespace from button") +- Click the `Code` button on your repository's landing page. +- Click the `Codespaces` tab. +- Click `Create codespace on main` to create the codespace. -**This will run for several minutes while it gets everything ready.** +**This will run for a minute or two while it gets everything ready.** +- After the codespace has been initialized there will be a terminal present. + +![Starting codespace](./images/cpho3.png?raw=true "Starting your codespace") + +This will take a while to run. + ## 3. Open the labs -After the codespace has started, open the labs document by going to the file tree on the left, find the file named **labs.md**, right-click on it, and open it with the **Preview** option.) *Alternatively, you can open it up in a separate browser tab directly from the GitHub site.* +After the codespace has started, open the labs document by going to the file tree on the left, find the file named **labs.md**, right-click on it, and open it with the **Preview** option.) ![Labs doc preview in codespace](./images/cpho4.png?raw=true "Labs doc preview in codespace") From b18aa5651d31c26806cafae90443e49f8617f069 Mon Sep 17 00:00:00 2001 From: April Yoho Date: Fri, 20 Sep 2024 11:52:14 +0100 Subject: [PATCH 2/3] Update README.md --- README.md | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 28dcf3f..be65ca4 100644 --- a/README.md +++ b/README.md @@ -9,21 +9,13 @@ These steps **must** be completed prior to starting the actual labs. ## 1. Ensure that you are signed up for Copilot access. -If you do not already have access to **GitHub Copilot**, go to **https://gh.io/cfp-sea24aic** to redeem a 7-day free trial of GitHub Copilot. You can also use this QR code. -

-

+Everyone in this workshop should have access to GitHub Copilot through your organization. -Fill in any information requested and press the `Apply coupon` button. - -![Signing up for Copilot](./images/pic007.png?raw=true "Signing up for Copilot") - -If everything is successful, you will see a banner that says `You have successfully redeemed your coupon`. - -![Signing up for Copilot](./images/pic008.png?raw=true "Signing up for Copilot") +If you do not have a Copilot license assigned from your organization, you can [sign up for a free 30 day trial.](https://github.com/github-copilot/signup?ref_cta=Copilot+trial&ref_loc=quickstart+for+github+copilot&ref_page=docs) ## 2. Create your own fork of the repository for these labs -- Ensure that you have created a repository by forking the [DaveOps30/copilot-hands-on](https://github.com/DaveOps30/copilot-hands-on) project as a template into your own GitHub area. +- Ensure that you have created a repository by forking the [Scubaninja/copilot-hands-on](https://github.com/scubaninja/copilot-hands-on) project as a template into your own GitHub area. - You do this by navigating to the repo, clicking the `Fork` button in the upper right portion of the main project page and following the steps to create a copy in **your-github-userid/copilot-hands-on**. ![Forking repository](./images/cpho1.png?raw=true "Forking the repository") From 448923b3ba2db0a9392f4ce9f57580a16fcaa987 Mon Sep 17 00:00:00 2001 From: April Yoho Date: Wed, 2 Oct 2024 09:04:01 +0000 Subject: [PATCH 3/3] changes --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index be65ca4..2bf3ef8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # GitHub Copilot Hands-on-lab setup +### LEGO is awesome + These instructions will guide you through configuring a GitHub Codespaces environment that you can use to run the course labs. If you prefer and if you know one of the other IDEs supported by Copilot, you can use that. But the instructions will reference the codespace version.