Skip to content

Commit ee1bc52

Browse files
committed
Revert "Add part 3 bonus"
This reverts commit 09c3773.
1 parent 09c3773 commit ee1bc52

File tree

1 file changed

+5
-91
lines changed

1 file changed

+5
-91
lines changed

workshop/README.md

Lines changed: 5 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ Progress: [🟢🟢⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪] 2/12 (16%)
5757
cd <YOUR_REPO_NAME>
5858
```
5959

60-
> 📝 **Note:** There is no need to push changes back to the repo during the workshop
60+
> [!NOTE]
61+
> There is no need to push changes back to the repo during the workshop
6162

6263
### 3. Verify Python is installed and set correctly
6364

@@ -365,7 +366,7 @@ There are a couple of bonus challenges if you've completed all the tasks and you
365366
### Bonus Challenge 1 - Create a robust CLI tool
366367
367368
Progress: [🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢] 12/12 (100%) 🎉
368-
Optional: [🚀 Turbo Boost! (1/2) 33%]
369+
Optional: [🚀 Turbo Boost! (1/2) 50%]
369370
370371
- Use GitHub Copilot chat with the `@workspace` prefix to convert the project into a CLI with options and a help menu
371372
- Ensure that the prompt specifies no external dependencies and it should only use the standard library
@@ -422,8 +423,8 @@ if __name__ == "__main__":
422423
### Bonus Challenge 2 - Document your project
423424
424425
Progress: [🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢] 12/12 (100%) 🎉
425-
Optional: [🚀 Turbo Boost! (1/2) 33%]
426-
Optional: [🌟 Extra Points! (2/2) 66%]
426+
Optional: [🚀 Turbo Boost! (1/2) 50%]
427+
Optional: [🌟 Extra Points! (2/2) 100% 🏆]
427428
428429
- Create a new `docs/` folder and a file called `README.md`
429430
- Use GitHub Copilot chat with the `@workspace` prefix to get started documenting your project using Markdown in a README.md
@@ -540,83 +541,6 @@ This project is licensed under the MIT License. See the [LICENSE](../LICENSE) fi
540541
541542
</details>
542543
543-
### Bonus Challenge 3 - Automate the data transformation
544-
545-
Progress: [🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢] 12/12 (100%) 🎉
546-
Optional: [🚀 Turbo Boost! (1/2) 33%]
547-
Optional: [🌟 Extra Points! (2/2) 66%]
548-
Optional: [🏆 Triple Threat! (2/2) 100%]
549-
550-
- Create a new file called `transform-data.yaml` in the `.github/workflows/` directory.
551-
- Use GitHub Copilot chat with the `@workspace` prefix to create a GitHub Action that will transform the data whenever a push or pull request is made to the repository.
552-
- Open a pull request to test the action. If any errors occur, use the GitHub Copilot chat to help you fix them.
553-
554-
<details>
555-
<summary>Cheatsheet</summary>
556-
557-
#### Prompt
558-
559-
```shell
560-
@workspace Generate a GitHub action that transforms the data on every push and pull request
561-
```
562-
563-
#### Expected output
564-
565-
```markdown
566-
To create a GitHub Action that will transform the data using your CLI, you can create a workflow file in the `.github/workflows` directory. Here is an example of a GitHub Action workflow file named `transform-data.yml`:
567-
568-
```yaml
569-
name: Transform Data
570-
571-
on:
572-
push:
573-
branches:
574-
- main
575-
workflow_dispatch:
576-
577-
jobs:
578-
transform:
579-
runs-on: ubuntu-latest
580-
581-
steps:
582-
- name: Checkout repository
583-
uses: actions/checkout@v2
584-
585-
- name: Set up Python
586-
uses: actions/setup-python@v2
587-
with:
588-
python-version: '3.x'
589-
590-
- name: Install dependencies
591-
run: |
592-
python -m venv venv
593-
source venv/bin/activate
594-
pip install pandas
595-
596-
- name: Run data transformation
597-
run: |
598-
source venv/bin/activate
599-
python workshop/main.py run_all
600-
601-
- name: Upload transformed data
602-
uses: actions/upload-artifact@v4
603-
with:
604-
name: transformed-data
605-
path: workshop/transformed_train.csv
606-
```
607-
608-
This workflow will:
609-
610-
* Trigger on pushes to the main branch and on manual dispatch.
611-
* Check out the repository.
612-
* Set up Python.
613-
* Install the necessary dependencies (in this case, pandas).
614-
* Run the data transformation using the run_all command from your CLI.
615-
* Upload the transformed data as an artifact.
616-
```
617-
618-
</details>
619-
620544
## Clean-up
621545
622546
### 1. Delete your Codespace
@@ -626,13 +550,3 @@ This workflow will:
626550
Before deleting, if you wish, you can push your changes. Remember workshop repositories are temporary too.
627551
628552
Go to [https://github.com/codespaces](https://github.com/codespaces) and find your current running Codespace and delete it.
629-
630-
## Additional resources
631-
632-
If you want to learn more about using GitHub Copilot, check out these resources:
633-
634-
* [GitHub Copilot Documentation](https://docs.github.com/copilot)
635-
* [VS Code video series: GitHub Copilot](https://www.youtube.com/playlist?list=PLj6YeMhvp2S7rQaCLRrMnzRdkNdKnMVwg)
636-
* [Blog: Best practices for prompting Copilot](http://blog.pamelafox.org/2023/06/best-practices-for-prompting-github.html)
637-
638-
Also check out the [GitHub Foundations learning path](https://learn.microsoft.com/training/paths/github-foundations/) for more resources on GitHub and GitHub Copilot.

0 commit comments

Comments
 (0)