Welcome to our workshop materials! Below are the steps we'll be walking through to build your own Copilot Extension.
A continued discussion is available here and thank you for attending!
- Open up github.com and let's go!
- Navigate to Settings
- Navigate to Developer Settings
- Click New GitHub App
- Fill in
NameandHomepage URL. Note,Homepage URLis arbitrary and we'll be usinghttps://gh.wkk.sufor this demo. - Uncheck
Activein the Webhooks section - Under Permissions, expand Account Permissions and set Copilot Chat to
read-only. - Click Create GitHub App
- Copy
Client IDas we'll need this later
- Open a new browser tab with github.com
- Choose the
ghusai1894from the context drop down - Visit our test repo via the announcement or by browsing this organization's repos
- Click Code
- Click the Codespaces tab
- Click Create codespace on main
- Success! You should now be viewing our test repo in a web-based VS Code editor
- In the VS Code view, navigate to
src/index.html - Replace
CLIENT_IDwith the Client ID you copied in step 8 of Create a Copilot App - In the VS Code terminal, run
npm i - In the VS Code terminal, run
npm start - Click Make Public in the popup that appears
- Navigate to the Ports tab in VS Code
- Copy the
Forwarded Address - Paste this value into the
Callback URLfield of your GitHub App of Create a Copilot App - Add
/authorizeto the end of theCallback URL - Click Save changes
- Scroll up and navigate to the Copilot tab
- Agree to the developer terms
- Select
agentfor App Type - Paste the
Forwarded Addressinto theURLfield - Type
Hello worldinto theInference Descriptionfield
- Navigate to the Codespace tab
- In the Ports tab, within VS Code, click the web icon or copy and paste the
Forwarded Addressinto a new tab - Click Continue on the warning about visiting a Codespace-hosted URL
- Click Let's Authorize An App!
- Click Authorize on the GitHub review page
- Click All set! Now back to GitHub!
- Open Copilot Chat on github.com and select General Purpose Chat
- Type
@YOURAGENT hi! - Give yourself a round of applause!