From 3f409d0f352382ad0b90aee721ccb66d780954bc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 18:35:24 +0000 Subject: [PATCH 1/5] Initial plan From d65f46ff1f0b46aaae6857fcaba36aa6b13d1c88 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 18:38:00 +0000 Subject: [PATCH 2/5] Add GitHub workflow files for auto-label, PR checks, and issue triage Co-authored-by: groupthinking <154503486+groupthinking@users.noreply.github.com> --- .github/labeler.yml | 26 ++++++++++++++++++++++++++ .github/workflows/auto-label.yml | 19 +++++++++++++++++++ .github/workflows/issue-triage.yml | 26 ++++++++++++++++++++++++++ .github/workflows/pr-checks.yml | 30 ++++++++++++++++++++++++++++++ 4 files changed, 101 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/auto-label.yml create mode 100644 .github/workflows/issue-triage.yml create mode 100644 .github/workflows/pr-checks.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..c63d865 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,26 @@ +# Labels based on file paths +# See https://github.com/actions/labeler for configuration options + +documentation: + - changed-files: + - any-glob-to-any-file: + - '*.md' + - 'docs/**' + +source: + - changed-files: + - any-glob-to-any-file: + - 'src/**' + +config: + - changed-files: + - any-glob-to-any-file: + - '*.json' + - '*.yml' + - '*.yaml' + - '.env*' + +workflows: + - changed-files: + - any-glob-to-any-file: + - '.github/**' diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml new file mode 100644 index 0000000..8385cf8 --- /dev/null +++ b/.github/workflows/auto-label.yml @@ -0,0 +1,19 @@ +name: Auto Label + +on: + pull_request: + types: [opened, edited, synchronize] + +permissions: + contents: read + pull-requests: write + +jobs: + label: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Label PR based on files changed + uses: actions/labeler@v5 diff --git a/.github/workflows/issue-triage.yml b/.github/workflows/issue-triage.yml new file mode 100644 index 0000000..021b3f6 --- /dev/null +++ b/.github/workflows/issue-triage.yml @@ -0,0 +1,26 @@ +name: Issue Triage + +on: + issues: + types: [opened] + +permissions: + issues: write + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - name: Add triage label to new issues + uses: actions/github-script@v7 + with: + script: | + const issue = context.payload.issue; + if (context.payload.action === 'opened') { + await github.rest.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: issue.number, + labels: ['needs-triage'] + }); + } diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml new file mode 100644 index 0000000..e7ea7bb --- /dev/null +++ b/.github/workflows/pr-checks.yml @@ -0,0 +1,30 @@ +name: PR Checks + +on: + pull_request: + branches: [main] + push: + branches: [main] + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build From 3af704b8a75ba85ea4c48cd82d919fdfb7aac738 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 6 Feb 2026 09:37:47 +0000 Subject: [PATCH 3/5] Address review comments: add sync-labels, simplify triage script, update glob patterns Co-authored-by: groupthinking <154503486+groupthinking@users.noreply.github.com> --- .github/labeler.yml | 4 ++-- .github/workflows/auto-label.yml | 2 ++ .github/workflows/issue-triage.yml | 15 ++++++--------- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index c63d865..19c2c45 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -16,8 +16,8 @@ config: - changed-files: - any-glob-to-any-file: - '*.json' - - '*.yml' - - '*.yaml' + - '**/*.yml' + - '**/*.yaml' - '.env*' workflows: diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index 8385cf8..bef9d5e 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -17,3 +17,5 @@ jobs: - name: Label PR based on files changed uses: actions/labeler@v5 + with: + sync-labels: true diff --git a/.github/workflows/issue-triage.yml b/.github/workflows/issue-triage.yml index 021b3f6..5e0bcaf 100644 --- a/.github/workflows/issue-triage.yml +++ b/.github/workflows/issue-triage.yml @@ -15,12 +15,9 @@ jobs: uses: actions/github-script@v7 with: script: | - const issue = context.payload.issue; - if (context.payload.action === 'opened') { - await github.rest.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: issue.number, - labels: ['needs-triage'] - }); - } + await github.rest.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.payload.issue.number, + labels: ['needs-triage'] + }); From 95ad84ffad6d11ece66bf423871d699b2caa84da Mon Sep 17 00:00:00 2001 From: Hayden <154503486+groupthinking@users.noreply.github.com> Date: Fri, 6 Feb 2026 10:29:59 -0600 Subject: [PATCH 4/5] Update auto-label.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/auto-label.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index bef9d5e..2f934b1 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -19,3 +19,5 @@ jobs: uses: actions/labeler@v5 with: sync-labels: true + with: + sync-labels: true From 1870635ac9d263d8c71c29fba28f6100c513f14d Mon Sep 17 00:00:00 2001 From: Hayden <154503486+groupthinking@users.noreply.github.com> Date: Fri, 6 Feb 2026 10:53:30 -0600 Subject: [PATCH 5/5] Update pr-checks.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/pr-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index e7ea7bb..23b2d07 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -20,7 +20,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '18.x' cache: 'npm' - name: Install dependencies