From ca85b433dac6c38b60af59e1783ef7a6df541557 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Feb 2026 18:14:09 +0000 Subject: [PATCH 1/3] Initial plan From 2ed84cceb18e377146c348c751945b1752ba8772 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Feb 2026 18:16:38 +0000 Subject: [PATCH 2/3] Add GitHub workflow for PR lint, build, and test checks Co-authored-by: athmangude <2655082+athmangude@users.noreply.github.com> --- .github/workflows/pr-checks.yml | 31 +++++++++++++++++++++++++++++++ package.json | 1 + 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/pr-checks.yml diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml new file mode 100644 index 0000000..0168fa1 --- /dev/null +++ b/.github/workflows/pr-checks.yml @@ -0,0 +1,31 @@ +name: PR Checks + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + lint-build-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Run lint + run: npm run lint + + - name: Run build + run: npm run build + + - name: Run tests + run: npm test diff --git a/package.json b/package.json index a261161..9399c83 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ ], "scripts": { "build": "tsc", + "lint": "tsc --noEmit", "start": "node dist/index.js", "dev": "ts-node src/index.ts", "test": "jest", From d7d0813cb5c4c060b7806aa80a6ff27b5b14a107 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Feb 2026 18:17:46 +0000 Subject: [PATCH 3/3] Add explicit permissions to workflow for security Co-authored-by: athmangude <2655082+athmangude@users.noreply.github.com> --- .github/workflows/pr-checks.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 0168fa1..338ae6a 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -7,6 +7,8 @@ on: jobs: lint-build-test: runs-on: ubuntu-latest + permissions: + contents: read steps: - name: Checkout code