👷 add some issue bot

This commit is contained in:
Xhofe
2022-02-14 15:32:25 +08:00
parent 228e6d10e7
commit 5094b673c4
4 changed files with 65 additions and 2 deletions

18
.github/workflows/issue_invalid.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Issue Invalid
on:
issues:
types: [labeled]
jobs:
lock-issue:
runs-on: ubuntu-latest
if: github.event.label.name == 'invalid'
steps:
- name: Lock issue
uses: actions-cool/issues-helper@v2
with:
actions: 'lock-issue'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
lock-reason: 'off-topic'