📓再次尝试,添加关闭issue的功能

This commit is contained in:
Qinyang Liu 2024-07-04 21:47:10 +08:00 committed by GitHub
parent e6d1ac3825
commit 06e0b3014f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,9 +36,8 @@ jobs:
- name: Close issue
if: startsWith(github.event.issue.title, '[e-mail]')
run: |
gh issue edit $NUMBER --state closed
env:
GH_TOKEN: ${{ secrets.PAT_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
uses: actions-cool/issues-helper@v3
with:
actions: 'close-issue'
token: ${{ secrets.PAT_TOKEN }}
issue-number: ${{ github.event.issue.number }}