2021-12-10 22:47:19 +08:00
name : Issue Open Check
on :
issues :
types : [ opened]
jobs :
issue-open-check :
runs-on : ubuntu-latest
steps :
2022-02-09 17:09:55 +08:00
- uses : actions-cool/check-user-permission@v2
2021-12-10 22:47:19 +08:00
id : checkUser
with :
require : 'write'
- name : check invalid
2022-02-09 17:09:55 +08:00
if : (contains(github.event.issue.body, '<!-- generated by') == false) && (steps.checkUser.outputs.require-result == 'false')
2022-03-15 05:07:41 +08:00
uses : actions-cool/issues-helper@v3
2021-12-10 22:47:19 +08:00
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://elementui.github.io/issue-generator/#/en-US?repo=element-plus) to create an issue, thank you!
你好 @${{ github.event.issue.user.login }},为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 [issue 助手](https://elementui.github.io/issue-generator/#/en-US?repo=element-plus) 来创建 issue 以方便我们定位错误。谢谢配合!