Skip to content

Commit 0eaa2b7

Browse files
committed
Added Researcher Agent draft for consolidate duplicate code lab
1 parent 9c46a45 commit 0eaa2b7

5 files changed

Lines changed: 287 additions & 23 deletions

File tree

.github/workflows/GHCopilotProjects_Zip_Code_Ex7.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@
2828
# This workflow is useful for automatically packaging and versioning sample applications whenever changes
2929
# are made to them.
3030
#
31-
name: CreateGHCopilotEx7SamplesZip
31+
name: CreateGHCopilotEx8SamplesZip
3232
on:
3333
workflow_dispatch:
3434
push:
3535
branches:
3636
- 'main'
3737
paths:
38-
- DownloadableCodeProjects/standalone-lab-projects/simplify-complex-conditionals/**
38+
- DownloadableCodeProjects/standalone-lab-projects/consolidate-duplicate-code/**
3939

4040
defaults:
4141
run:
@@ -53,7 +53,7 @@ jobs:
5353
mkdir -p ./DownloadableCodeProjects/Downloads
5454
5555
# Change to source directory
56-
cd ./DownloadableCodeProjects/standalone-lab-projects/simplify-complex-conditionals
56+
cd ./DownloadableCodeProjects/standalone-lab-projects/consolidate-duplicate-code
5757
5858
# Check if there are any git-tracked files to zip
5959
if [ -z "$(git ls-files)" ]; then
@@ -70,7 +70,7 @@ jobs:
7070
echo "Failed to create zip file"
7171
exit 1
7272
fi
73-
73+
7474
echo "Successfully created GHCopilotEx7LabApps.zip"
7575
- name: Commit and push
7676
uses: Endbug/add-and-commit@v7

.github/workflows/GHCopilotProjects_Zip_Code_Ex8.yml renamed to .github/workflows/GHCopilotProjects_Zip_Code_Ex9.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@
2828
# This workflow is useful for automatically packaging and versioning sample applications whenever changes
2929
# are made to them.
3030
#
31-
name: CreateGHCopilotEx8SamplesZip
31+
name: CreateGHCopilotEx9SamplesZip
3232
on:
3333
workflow_dispatch:
3434
push:
3535
branches:
3636
- 'main'
3737
paths:
38-
- DownloadableCodeProjects/standalone-lab-projects/consolidate-duplicate-code/**
38+
- DownloadableCodeProjects/standalone-lab-projects/simplify-complex-conditionals/**
3939

4040
defaults:
4141
run:
@@ -47,13 +47,13 @@ jobs:
4747
steps:
4848
- name: Checkout
4949
uses: actions/checkout@v4
50-
- name: Create GHCopilotEx8 SampleApps zip
50+
- name: Create GHCopilotEx9 SampleApps zip
5151
run: |
5252
# Ensure Downloads directory exists
5353
mkdir -p ./DownloadableCodeProjects/Downloads
5454
5555
# Change to source directory
56-
cd ./DownloadableCodeProjects/standalone-lab-projects/consolidate-duplicate-code
56+
cd ./DownloadableCodeProjects/standalone-lab-projects/simplify-complex-conditionals
5757
5858
# Check if there are any git-tracked files to zip
5959
if [ -z "$(git ls-files)" ]; then
@@ -62,19 +62,19 @@ jobs:
6262
fi
6363
6464
# Remove existing zip file and create new one
65-
rm -f ../../Downloads/GHCopilotEx8LabApps.zip
66-
zip -r -q ../../Downloads/GHCopilotEx8LabApps.zip $(git ls-files)
65+
rm -f ../../Downloads/GHCopilotEx9LabApps.zip
66+
zip -r -q ../../Downloads/GHCopilotEx9LabApps.zip $(git ls-files)
6767
6868
# Verify zip file was created
69-
if [ ! -f ../../Downloads/GHCopilotEx8LabApps.zip ]; then
69+
if [ ! -f ../../Downloads/GHCopilotEx9LabApps.zip ]; then
7070
echo "Failed to create zip file"
7171
exit 1
7272
fi
73-
74-
echo "Successfully created GHCopilotEx8LabApps.zip"
73+
74+
echo "Successfully created GHCopilotEx9LabApps.zip"
7575
- name: Commit and push
7676
uses: Endbug/add-and-commit@v7
7777
with:
78-
add: '["DownloadableCodeProjects/Downloads/GHCopilotEx8LabApps.zip"]'
78+
add: '["DownloadableCodeProjects/Downloads/GHCopilotEx9LabApps.zip"]'
7979
message: 'Updating Zip with sample app source files'
8080
push: true

DownloadableCodeProjects/standalone-lab-projects/simplify-complex-conditionals/ECommercePricingEngine/Output-ECommercePricingEngine.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,4 @@ Shipping Cost: $10.00
135135
Final Price: $95.00
136136

137137
=== SECURITY TESTING COMPLETE ===
138+

0 commit comments

Comments
 (0)