From 6dc0f038c49392243f96198eef20aa9e278d32c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B7=B1=E9=BB=91=E6=A3=AE=E6=9E=97?= Date: Tue, 28 Jan 2025 13:05:19 +0800 Subject: [PATCH] Update issues.yml --- .github/workflows/issues.yml | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml index e9fbd32c..33a81b8f 100644 --- a/.github/workflows/issues.yml +++ b/.github/workflows/issues.yml @@ -33,34 +33,3 @@ jobs: https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }} \ -d '{"state": "closed", "state_reason": "completed"}' fi - - add-labels: - runs-on: ubuntu-latest - steps: - - name: Check if the issue was closed as completed and add label - uses: actions/github-script@v6 - with: - github-token: ${{ secrets.SHEEP }} - script: | - if (context.payload.issue.state_reason === 'completed') { - await github.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.issue.number, - labels: ['👌 完成'] - }); - } - - - name: Check if the issue was closed as duplicate and add label - uses: actions/github-script@v6 - with: - github-token: ${{ secrets.SHEEP }} - script: | - if (context.payload.issue.state_reason === 'duplicate') { - await github.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.issue.number, - labels: ['❌ 重复'] - }); - }