From 9908c5353d7029d342375fdce13327ed441c1acf Mon Sep 17 00:00:00 2001 From: Jinnrry <19919556+Jinnrry@users.noreply.github.com> Date: Fri, 22 May 2026 23:58:41 +0800 Subject: [PATCH] Change label addition method on test failure (#339) Replaced action for adding labels on test failure with a command using GitHub CLI. --- .github/workflows/unitTest.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/unitTest.yml b/.github/workflows/unitTest.yml index fbbd9d2..382d990 100644 --- a/.github/workflows/unitTest.yml +++ b/.github/workflows/unitTest.yml @@ -47,12 +47,9 @@ jobs: - name: Pull Request Labeler if: ${{ failure() }} - uses: actions-cool/issues-helper@v3 - with: - actions: 'add-labels' - token: ${{ secrets.GITHUB_TOKEN }} - issue-number: ${{ github.event.pull_request.number }} - labels: 'Auto: Test Failed' + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh pr edit ${{ github.event.pull_request.number }} --add-label "Auto: Test Failed" - name: Install Dependencies run: npm install --global yarn