From ca7599b81ad22a2876f43c1a0e2e03638ec9fa02 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 21 Nov 2025 06:29:00 +0000 Subject: [PATCH 1/4] Initial plan From ef54aec7ae34ff071127418f45660eb1778a1e1c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 21 Nov 2025 06:31:35 +0000 Subject: [PATCH 2/4] feat: Add PR size labeler workflow Co-authored-by: tom00502 <9986381+tom00502@users.noreply.github.com> --- .github/workflows/pr-size.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pr-size.yml diff --git a/.github/workflows/pr-size.yml b/.github/workflows/pr-size.yml new file mode 100644 index 0000000..c0e4c71 --- /dev/null +++ b/.github/workflows/pr-size.yml @@ -0,0 +1,30 @@ +name: PR Size Labeler + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + label-size: + permissions: + pull-requests: write + contents: read + issues: write + runs-on: ubuntu-latest + steps: + - uses: codelytv/pr-size-labeler@v1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + xs_label: 'size/XS' + xs_max_size: '10' + s_label: 'size/S' + s_max_size: '50' + m_label: 'size/M' + m_max_size: '200' + l_label: 'size/L' + l_max_size: '500' + xl_label: 'size/XL' + xl_max_size: '1000' + xxl_label: 'size/XXL' + fail_if_xl: 'false' + files_to_ignore: 'package-lock.json,yarn.lock,dist/**' From 6ece659c3a10e6b7c94d8f341d4e9f0d46cebf54 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 21 Nov 2025 06:32:36 +0000 Subject: [PATCH 3/4] refactor: Remove unnecessary issues:write permission from workflow Co-authored-by: tom00502 <9986381+tom00502@users.noreply.github.com> --- .github/workflows/pr-size.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/pr-size.yml b/.github/workflows/pr-size.yml index c0e4c71..3a83002 100644 --- a/.github/workflows/pr-size.yml +++ b/.github/workflows/pr-size.yml @@ -9,7 +9,6 @@ jobs: permissions: pull-requests: write contents: read - issues: write runs-on: ubuntu-latest steps: - uses: codelytv/pr-size-labeler@v1 From 0a9cb1d28f4745ac4ee8073c205318104ac5d2f6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 21 Nov 2025 06:34:22 +0000 Subject: [PATCH 4/4] docs: Add security comment about action versioning Co-authored-by: tom00502 <9986381+tom00502@users.noreply.github.com> --- .github/workflows/pr-size.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pr-size.yml b/.github/workflows/pr-size.yml index 3a83002..3164274 100644 --- a/.github/workflows/pr-size.yml +++ b/.github/workflows/pr-size.yml @@ -11,6 +11,8 @@ jobs: contents: read runs-on: ubuntu-latest steps: + # Using @v1 for automatic minor/patch updates. For enhanced security, + # consider pinning to a specific commit SHA instead of a version tag. - uses: codelytv/pr-size-labeler@v1 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}