From bfa9ab2ee832ed80a1515a0c4b98f22e311275db Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Mar 2026 04:25:34 +0000 Subject: [PATCH 1/3] Initial plan From 54ba35c319c0e54532b32054e9d2d7a0dcf46c8a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Mar 2026 04:28:04 +0000 Subject: [PATCH 2/3] =?UTF-8?q?[=E8=BF=BD=E5=8A=A0]=20issue=E4=BD=9C?= =?UTF-8?q?=E6=88=90=E6=99=82=E3=81=ABtriage=E3=83=A9=E3=83=99=E3=83=AB?= =?UTF-8?q?=E3=82=92=E4=BB=98=E4=B8=8E=E3=81=99=E3=82=8Bworkflow=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: shsw228 <13506491+shsw228@users.noreply.github.com> --- .github/workflows/triage.yml | 50 ++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/triage.yml diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml new file mode 100644 index 0000000..a5b6d07 --- /dev/null +++ b/.github/workflows/triage.yml @@ -0,0 +1,50 @@ +name: Issue Triage + +on: + issues: + types: + - opened + +permissions: + issues: write + +jobs: + add-triage-label: + name: Add triage label + runs-on: ubuntu-latest + steps: + - name: Ensure triage label exists and apply it + uses: actions/github-script@v7 + with: + script: | + const owner = context.repo.owner; + const repo = context.repo.repo; + const issue_number = context.payload.issue.number; + const labelName = 'triage'; + + try { + await github.rest.issues.getLabel({ + owner, + repo, + name: labelName, + }); + } catch (error) { + if (error.status !== 404) { + throw error; + } + + await github.rest.issues.createLabel({ + owner, + repo, + name: labelName, + color: 'D4C5F9', + description: 'Needs initial triage', + }); + } + + await github.rest.issues.addLabels({ + owner, + repo, + issue_number, + labels: [labelName], + }); From 5ed05e4b55b9ed9a4250c0c0b53997999be17651 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Mar 2026 04:28:52 +0000 Subject: [PATCH 3/3] =?UTF-8?q?[=E4=BF=AE=E6=AD=A3]=20triage=20workflow?= =?UTF-8?q?=E3=81=AE=E4=BE=8B=E5=A4=96=E5=88=A4=E5=AE=9A=E3=82=92=E5=AE=89?= =?UTF-8?q?=E5=85=A8=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: shsw228 <13506491+shsw228@users.noreply.github.com> --- .github/workflows/triage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml index a5b6d07..81f33b8 100644 --- a/.github/workflows/triage.yml +++ b/.github/workflows/triage.yml @@ -29,7 +29,7 @@ jobs: name: labelName, }); } catch (error) { - if (error.status !== 404) { + if (error?.status !== 404) { throw error; }