Skip to content

Commit

Permalink
Update labels.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Deep-Dark-Forest authored Jan 28, 2025
1 parent 67547da commit 41048be
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,18 @@ jobs:
labels: ['❌ 重复']
});
}
- name: Check if the issue was closed as not planned and add label
uses: actions/github-script@v6
with:
github-token: ${{ secrets.BOT }}
script: |
if (context.payload.issue.state_reason === 'not_planned') {
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.issue.number,
labels: ['❌ 忽略']
});
}

0 comments on commit 41048be

Please sign in to comment.