mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-02-17 13:20:52 +08:00
25 lines
1.1 KiB
YAML
25 lines
1.1 KiB
YAML
name: Issue Open Check
|
|
|
|
on:
|
|
issues:
|
|
types: [opened]
|
|
|
|
jobs:
|
|
check-issue:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions-cool/check-issue-ref@v1
|
|
id: check
|
|
- run: echo opened by ${{ steps.check.outputs.result }}
|
|
|
|
- name: check format
|
|
if: (contains(github.event.issue.body, 'issue-helper') == false && steps.check.outputs.result == 0)
|
|
uses: actions-cool/issues-helper@v3
|
|
with:
|
|
actions: 'create-comment,add-labels,close-issue'
|
|
issue-number: ${{ github.event.issue.number }}
|
|
labels: 'invalid'
|
|
body: |
|
|
Hello @${{ github.event.issue.user.login }}, your issue has been closed because it does not conform to our issue requirements. Please use the [Issue Helper](https://naive-ui.github.io/issue-helper) to create an issue, thank you!
|
|
|
|
你好 @${{ github.event.issue.user.login }},为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 [issue 助手](https://naive-ui.github.io/issue-helper) 来创建 issue 以方便我们定位错误。谢谢配合! |