From e5fb787535e950554725719b91df132e221f72d8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 29 May 2026 20:31:53 +0000 Subject: [PATCH 1/5] Add PR lint workflow --- .github/workflows/lint.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..8aa0b9c --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,28 @@ +name: Lint + +on: + pull_request: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up pnpm + uses: pnpm/action-setup@v4 + with: + version: 10.6.3 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: pnpm + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Run lint + run: pnpm lint From cdcf9fc9150439fd136d27272da6912750d7a97f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 29 May 2026 20:33:13 +0000 Subject: [PATCH 2/5] Limit lint workflow permissions --- .github/workflows/lint.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8aa0b9c..953cc27 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,6 +3,9 @@ name: Lint on: pull_request: +permissions: + contents: read + jobs: lint: runs-on: ubuntu-latest From 7f77da9d86790d390acff8ea24a1b01ed3a8a16d Mon Sep 17 00:00:00 2001 From: "Gabriel A. Devenyi" Date: Sat, 30 May 2026 14:32:05 -0400 Subject: [PATCH 3/5] Don't silently fix bugs during linting Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 953cc27..5a4a92f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -28,4 +28,4 @@ jobs: run: pnpm install --frozen-lockfile - name: Run lint - run: pnpm lint + run: pnpm exec tsc && pnpm exec eslint lib From 24a9b7b5713cfcaeabd4a019daed0ba6d8c64b30 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 30 May 2026 18:32:11 +0000 Subject: [PATCH 4/5] Remove hardcoded pnpm version from lint workflow --- .github/workflows/lint.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5a4a92f..0a0da0c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,8 +15,6 @@ jobs: - name: Set up pnpm uses: pnpm/action-setup@v4 - with: - version: 10.6.3 - name: Set up Node.js uses: actions/setup-node@v4 From 1dd92fe2d364b61315a5181fa59397a95b0def15 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 30 May 2026 18:34:16 +0000 Subject: [PATCH 5/5] Use latest Node.js LTS version in lint workflow --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0a0da0c..df8a70a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 22 + node-version: lts/* cache: pnpm - name: Install dependencies