Skip to content

[Bug] Exercise: Getting Started with GitHub Copilot #1 Step 3 #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rnottinger opened this issue Apr 3, 2025 · 2 comments
Open

[Bug] Exercise: Getting Started with GitHub Copilot #1 Step 3 #25

rnottinger opened this issue Apr 3, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@rnottinger
Copy link

Summary

When I pushed the changes for Step 3, it said Step 3 - Fail with Status of Fail on style.css.

How to reproduce

So I looked at code that was added to style.css using Copilot Edit and it looked good.

I was able to track down the bug by clicking on

  • the Actions tab in the repository,
  • then click Step 3,
  • then 3-copilot-edits.yml
    • then scroll down to the comment
      • # Check for participants info in styles.css
        • and noticed that it was doing a search for the substring participant
          • keyphrase='participant'
  • I then looked at the code added by Copilot to style.css and it created a class called .activity-card
    • I modified .activity-card to be .participant-card

Image

  • I also had to modify the app.js file to use the .participant-card css class instead of .activity-card

Image

  • I then pushed the changes and I got Step 3 - Passed ✅
    • Problem Solved!
@rnottinger rnottinger added the bug Something isn't working label Apr 3, 2025
@chriswblake
Copy link
Member

@rnottinger Thanks for this useful feedback. :)
I'll modify the exercise to pass more generically.

@chriswblake chriswblake self-assigned this Apr 4, 2025
@SylvesterOgaOgaji
Copy link

What I did to pass through the task is to use Add Context button, before prompting with "Hey Copilot, can you please edit the activity cards to add a participants section.
It will show what participants that are already signed up for that activity as a bulleted list.
Remember to make it pretty!" then restarted my VScode, and finally refreshed the browers to get passed the task

@skills skills deleted a comment from ektabamania111 May 30, 2025
@skills skills deleted a comment from SalaahSalah2 May 30, 2025
@skills skills locked and limited conversation to collaborators May 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Development

No branches or pull requests

4 participants
@rnottinger @chriswblake @SylvesterOgaOgaji and others