From 4782a0789dfd56afee428265cf3f24d9d473c4c8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 29 Aug 2025 01:04:40 +0000 Subject: [PATCH 1/4] Initial plan From 3c8e2c8436cbd64af4584d97a5331ac3d1485fea Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 29 Aug 2025 01:07:18 +0000 Subject: [PATCH 2/4] Add copilot-setup-steps.yml for Deno development environment setup Co-authored-by: ejsmith <282584+ejsmith@users.noreply.github.com> --- copilot-setup-steps.yml | 68 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 copilot-setup-steps.yml diff --git a/copilot-setup-steps.yml b/copilot-setup-steps.yml new file mode 100644 index 0000000..b96a9e0 --- /dev/null +++ b/copilot-setup-steps.yml @@ -0,0 +1,68 @@ +name: Development Environment Setup + +description: | + Setup steps for the FetchClient Deno project development environment. + This configuration helps GitHub Copilot understand how to set up and work with this Deno TypeScript project. + +steps: + - name: Setup Deno + uses: denoland/setup-deno@v2 + with: + deno-version: v2.x + + - name: Cache Deno dependencies + uses: actions/cache@v4 + with: + path: | + ~/.cache/deno + ~/.deno + key: deno-${{ runner.os }}-${{ hashFiles('deno.lock') }} + restore-keys: | + deno-${{ runner.os }}- + + - name: Install dependencies + run: deno cache mod.ts + + - name: Type check + run: deno task check + + - name: Format check + run: deno task format-check + + - name: Lint + run: deno task lint + + - name: Run tests + run: deno task test + +environment: + deno_version: v2.x + node_version: "22.x" + +development_commands: + - name: Run tests + command: deno task test + description: Run all tests with network permissions + + - name: Type check + command: deno task check + description: Type check TypeScript files + + - name: Format code + command: deno fmt + description: Format TypeScript files + + - name: Lint code + command: deno task lint + description: Lint TypeScript files + + - name: Build NPM package + command: deno task build + description: Build NPM package using DNT + +project_info: + language: TypeScript + runtime: Deno + package_manager: Deno + test_framework: Deno Test + build_tool: DNT (Deno to NPM Transform) \ No newline at end of file From c19fc93a541a5c927c9fd531458e511c9a9e1a28 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 29 Aug 2025 01:10:17 +0000 Subject: [PATCH 3/4] Fix copilot-setup-steps.yml to match reference structure with Deno setup Co-authored-by: ejsmith <282584+ejsmith@users.noreply.github.com> --- .github/workflows/copilot-setup-steps.yml | 26 +++++++++ copilot-setup-steps.yml | 68 ----------------------- 2 files changed, 26 insertions(+), 68 deletions(-) create mode 100644 .github/workflows/copilot-setup-steps.yml delete mode 100644 copilot-setup-steps.yml diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml new file mode 100644 index 0000000..887bb9c --- /dev/null +++ b/.github/workflows/copilot-setup-steps.yml @@ -0,0 +1,26 @@ +name: "Copilot Setup" + +on: + workflow_dispatch: + push: + paths: + - .github/workflows/copilot-setup-steps.yml + pull_request: + paths: + - .github/workflows/copilot-setup-steps.yml + +jobs: + copilot-setup-steps: + runs-on: ubuntu-latest + + permissions: + contents: read + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Deno + uses: denoland/setup-deno@v2 + with: + deno-version: v2.x \ No newline at end of file diff --git a/copilot-setup-steps.yml b/copilot-setup-steps.yml deleted file mode 100644 index b96a9e0..0000000 --- a/copilot-setup-steps.yml +++ /dev/null @@ -1,68 +0,0 @@ -name: Development Environment Setup - -description: | - Setup steps for the FetchClient Deno project development environment. - This configuration helps GitHub Copilot understand how to set up and work with this Deno TypeScript project. - -steps: - - name: Setup Deno - uses: denoland/setup-deno@v2 - with: - deno-version: v2.x - - - name: Cache Deno dependencies - uses: actions/cache@v4 - with: - path: | - ~/.cache/deno - ~/.deno - key: deno-${{ runner.os }}-${{ hashFiles('deno.lock') }} - restore-keys: | - deno-${{ runner.os }}- - - - name: Install dependencies - run: deno cache mod.ts - - - name: Type check - run: deno task check - - - name: Format check - run: deno task format-check - - - name: Lint - run: deno task lint - - - name: Run tests - run: deno task test - -environment: - deno_version: v2.x - node_version: "22.x" - -development_commands: - - name: Run tests - command: deno task test - description: Run all tests with network permissions - - - name: Type check - command: deno task check - description: Type check TypeScript files - - - name: Format code - command: deno fmt - description: Format TypeScript files - - - name: Lint code - command: deno task lint - description: Lint TypeScript files - - - name: Build NPM package - command: deno task build - description: Build NPM package using DNT - -project_info: - language: TypeScript - runtime: Deno - package_manager: Deno - test_framework: Deno Test - build_tool: DNT (Deno to NPM Transform) \ No newline at end of file From f8e717d60b14dbce1a0bcd07ad9741adb163d3bb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 29 Aug 2025 01:22:03 +0000 Subject: [PATCH 4/4] Fix linting error: add missing newline at end of file Co-authored-by: ejsmith <282584+ejsmith@users.noreply.github.com> --- .github/workflows/copilot-setup-steps.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 887bb9c..07faee6 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -23,4 +23,4 @@ jobs: - name: Setup Deno uses: denoland/setup-deno@v2 with: - deno-version: v2.x \ No newline at end of file + deno-version: v2.x