From 8a0448fecf6c98394be2a0fcff90acaf012cb8c8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Jun 2025 20:23:44 +0000 Subject: [PATCH 1/6] Initial plan for issue From 9c9c26272c34451a97a30dc275514120377f0207 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Jun 2025 20:31:09 +0000 Subject: [PATCH 2/6] Add copilot-setup-steps.yml to customize development environment Co-authored-by: dylan-smith <1508559+dylan-smith@users.noreply.github.com> --- .github/copilot-setup-steps.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/copilot-setup-steps.yml diff --git a/.github/copilot-setup-steps.yml b/.github/copilot-setup-steps.yml new file mode 100644 index 000000000..dc450fbd7 --- /dev/null +++ b/.github/copilot-setup-steps.yml @@ -0,0 +1,25 @@ +name: Setup Development Environment + +on: + workflow_dispatch: + +jobs: + setup: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v2 + with: + global-json-file: global.json + + - name: Restore dependencies + run: dotnet restore src/OctoshiftCLI.sln + + - name: Format code + run: dotnet format src/OctoshiftCLI.sln --verify-no-changes + + - name: Build + run: dotnet build src/OctoshiftCLI.sln --no-restore \ No newline at end of file From e228e843249c24007e90448f0b80d77a36a127c0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Jun 2025 21:00:23 +0000 Subject: [PATCH 3/6] Add push and pull_request triggers to copilot-setup-steps.yml workflow Co-authored-by: dylan-smith <1508559+dylan-smith@users.noreply.github.com> --- .github/copilot-setup-steps.yml | 38 +++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/.github/copilot-setup-steps.yml b/.github/copilot-setup-steps.yml index dc450fbd7..270057eb5 100644 --- a/.github/copilot-setup-steps.yml +++ b/.github/copilot-setup-steps.yml @@ -2,24 +2,30 @@ name: Setup Development Environment on: workflow_dispatch: + push: + paths: + - .github/copilot-setup-steps.yml + pull_request: + paths: + - .github/copilot-setup-steps.yml jobs: setup: runs-on: ubuntu-latest - + steps: - - uses: actions/checkout@v4 - - - name: Setup .NET - uses: actions/setup-dotnet@v2 - with: - global-json-file: global.json - - - name: Restore dependencies - run: dotnet restore src/OctoshiftCLI.sln - - - name: Format code - run: dotnet format src/OctoshiftCLI.sln --verify-no-changes - - - name: Build - run: dotnet build src/OctoshiftCLI.sln --no-restore \ No newline at end of file + - uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v2 + with: + global-json-file: global.json + + - name: Restore dependencies + run: dotnet restore src/OctoshiftCLI.sln + + - name: Format code + run: dotnet format src/OctoshiftCLI.sln --verify-no-changes + + - name: Build + run: dotnet build src/OctoshiftCLI.sln --no-restore From 6c9b9373a82e3159c5d5b83846ff3eabf83638e1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Jun 2025 21:02:57 +0000 Subject: [PATCH 4/6] Fix copilot-setup-steps job name and add required permissions Co-authored-by: dylan-smith <1508559+dylan-smith@users.noreply.github.com> --- .github/copilot-setup-steps.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/copilot-setup-steps.yml b/.github/copilot-setup-steps.yml index 270057eb5..bd9cb9b5e 100644 --- a/.github/copilot-setup-steps.yml +++ b/.github/copilot-setup-steps.yml @@ -9,8 +9,12 @@ on: paths: - .github/copilot-setup-steps.yml +permissions: + contents: read + jobs: - setup: + # The job name MUST be 'copilot-setup-steps' to be picked up by GitHub Copilot + copilot-setup-steps: runs-on: ubuntu-latest steps: From 4e34401b66b84d55eaa9724a43a08820589ba409 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Jun 2025 21:06:00 +0000 Subject: [PATCH 5/6] Remove format and build steps from copilot-setup-steps workflow Co-authored-by: dylan-smith <1508559+dylan-smith@users.noreply.github.com> --- .github/copilot-setup-steps.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/copilot-setup-steps.yml b/.github/copilot-setup-steps.yml index bd9cb9b5e..5f90281e2 100644 --- a/.github/copilot-setup-steps.yml +++ b/.github/copilot-setup-steps.yml @@ -27,9 +27,3 @@ jobs: - name: Restore dependencies run: dotnet restore src/OctoshiftCLI.sln - - - name: Format code - run: dotnet format src/OctoshiftCLI.sln --verify-no-changes - - - name: Build - run: dotnet build src/OctoshiftCLI.sln --no-restore From 588bc68e31941da66bb4611664cdf1c292be4a94 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Jun 2025 21:09:01 +0000 Subject: [PATCH 6/6] Move copilot-setup-steps.yml to .github/workflows/ folder Co-authored-by: dylan-smith <1508559+dylan-smith@users.noreply.github.com> --- .github/{ => workflows}/copilot-setup-steps.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename .github/{ => workflows}/copilot-setup-steps.yml (84%) diff --git a/.github/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml similarity index 84% rename from .github/copilot-setup-steps.yml rename to .github/workflows/copilot-setup-steps.yml index 5f90281e2..0d692b3d7 100644 --- a/.github/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -4,10 +4,10 @@ on: workflow_dispatch: push: paths: - - .github/copilot-setup-steps.yml + - .github/workflows/copilot-setup-steps.yml pull_request: paths: - - .github/copilot-setup-steps.yml + - .github/workflows/copilot-setup-steps.yml permissions: contents: read