ci: close usage issue

This commit is contained in:
07akioni 2021-06-22 11:17:57 +08:00
parent 133c28e5af
commit 2ece01e5a8

25
.github/workflows/issue-reply.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Issue Reply
on:
issues:
types: [labeled]
jobs:
check-label:
runs-on: ubuntu-latest
steps:
- name: Usage
if: github.event.label.name == 'Usage' || github.event.label.name == 'Question'
uses: actions-cool/issues-helper@v2.2.1
with:
actions: 'create-comment,close-issue'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }}, we use GitHub issues to trace bugs or discuss plans of Naive UI. So, please don't ask usage questions. You can join the community to ask questions:
- [Discord](https://discord.gg/Pqv7Mev5Dd)
- DingTalk Group 33482509
你好 @${{ github.event.issue.user.login }}Naive UI Issue 板块是用于 bug 反馈与需求讨论的地方,请勿询问如何使用的问题。你可以加入社区进行提问:
- [Discord](https://discord.gg/Pqv7Mev5Dd)
- 钉钉群 33482509